21 Jan
2014
21 Jan
'14
4:13 p.m.
On 1/20/2014 11:27 PM, pmenso57@comcast.net wrote:
Provided the code was only in an #if block used for pre-generation (or the code is *only* used for pre-gen), you could have wave produce that. E.g. use an object-like macro to get a non-macro-operator hash mark:
#if PREGENERATING_HEADERS #define HASH # HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) vector(vector&& rhs) : vec(std::forward
(rhs.vec)) {} HASH endif #endif
Clever, but sadly the code is not only used for pregeneration. It's possible to compile Fusion with the "don't use preprocessed headers" flag, in which case this header gets used directly. <sigh> -- Eric Niebler Boost.org http://www.boost.org