You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it failed to compile because BOOST_OS_UNIX doesn't expand to 1 or 0. Instead, it expands to a complex expression that can't be used in preprocessor metaprogramming.
Could we offer BOOST_OS_UNIX10 (and the equivalent to other macros as well) that expand to 1 or 0 instead of a complex expression? Or, alternatively, modify these macros to expand to 1 or 0 already?
The text was updated successfully, but these errors were encountered:
Boost.Predef macros (e.g.
BOOST_OS_WINDOWS
) expand toBOOST_VERSION_NUMBER_AVAILABLE
instead of1
or0
. Why is that?By expanding to
BOOST_VERSION_NUMBER_AVAILABLE
I can't use these macros in Boost.PP. For instance, I recently had to use code like:But it failed to compile because
BOOST_OS_UNIX
doesn't expand to1
or0
. Instead, it expands to a complex expression that can't be used in preprocessor metaprogramming.Could we offer
BOOST_OS_UNIX10
(and the equivalent to other macros as well) that expand to 1 or 0 instead of a complex expression? Or, alternatively, modify these macros to expand to1
or0
already?The text was updated successfully, but these errors were encountered: