On Thu, Jun 28, 2018 at 9:11 PM Peter Dimov via Boost
Rene Rivera wrote:
On Thu, Jun 28, 2018 at 4:40 PM Peter Dimov via Boost
wrote: To detect the actual libstdc++ version, you should use the Boost.Config macro, as it's generally more reliable.
Why is it more reliable?
__GLIBCXX__ is a date, which is not very useful for determining the version.
Which is what Predef uses. And also uses __GLIBCPP__ as fallback. But, yes they are dates, as that's the only real indicator of *only* libstdc++ I knew of. There's _GLIBCXX_RELEASE but that's only for 7 and up. Config uses
Hm, hadn't kept up on that. I'll have to add that if available.
__has_include to detect the version under Clang,
How would __has_include help?
__GNUC__ under g++.
But that's the g++ version, not the lib version. I guess I should check the Config code :-) -- -- Rene Rivera -- Grafik - Don't Assume Anything -- Robot Dreams - http://robot-dreams.net