Subject: Re: [boost] [type_traits] Rewrite and dependency free version
From: Dave Gomboc (dave_gomboc_at_[hidden])
Date: 2015-01-22 11:20:55
On 1/15/2015 3:12PM, Edward Diener wrote:
> Trying gcc-3.4.2 it has the same result as gcc-3.4.5 using master and
> Version2 branches.
> Trying gcc-3.3.3 it complains:
> "cc1plus.exe: error: unrecognized option `-Wextra'"
> for every file whether using master or version2.
> Whether type_traits should compile with these old gcc-3 versions is up
> to you.
Older versions of gcc (including the unofficial 2.96 versions that are
still being used in 2015, by the way) will accept -W, but not know
about -Wextra (the newer name for -W). However, do not confuse -W
I have actually been able to implement things like integral_constant
directly that compile and work on gcc 2.96. The main workaround
required is to split up the template specialization into two lines:
create an int const some_name = <some compile-time calculable value>,
then perform the template specialization on a second line of code
using ... ::value = some_name.
So, supporting gcc 3.x should be a breeze. ;-)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk