Boost logo

Boost :

Subject: Re: [boost] Strange libstdc++ versions in travis-ci testers
From: Peter Dimov (lists_at_[hidden])
Date: 2018-06-29 02:10:37


Rene Rivera wrote:

> On Thu, Jun 28, 2018 at 4:40 PM Peter Dimov via Boost
> <boost_at_[hidden]> 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.
There's _GLIBCXX_RELEASE but that's only for 7 and up. Config uses
__has_include to detect the version under Clang, __GNUC__ under g++.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk