Re: [boost] [preprocessor] math macros

--- Paul Mensonides <pmenso57@comcast.net> wrote:
Hi Cromwell,
Hello!
FYI, these macros don't belong in the preprocessor library (pp-lib). That library is a set of macros (etc.) designed to be used to generate C and C++ code. They don't actually generate that code themselves.
Ah, understood.
That isn't saying anything about whether your implementation is good or bad or whether it belongs in Boost. Only that it doesn't properly belong in the pp-lib. Instead, your macros are clients of the pp-lib. They should probably go with the rest of the math stuff (<boost/math/...>) and use a plain BOOST_ or BOOST_MATH_ prefix (but definitely not BOOST_PP_).
Okay, I'll reorganize everything.
In order to be part of the pp-lib, the macros would have to calculate their results at preprocessing time. For example, BOOST_PP_ADD(5, 5) expands to 10 (the single token), not (5 + 5). Does that make sense?
Gotcha. I don't see how I can do that with my lib without an inordinate amount of work, so unless someone else can see how, I'll stop trying. Thanks for clearing things up! I'll try not to be so presumptuous next time. Cromwell Enage __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/
participants (1)
-
Cromwell Enage