Boost logo

Boost :

Subject: Re: [boost] C++11 variant of the gcc toolset?
From: Peter Dimov (lists_at_[hidden])
Date: 2013-12-14 13:17:33


Steven Watanabe wrote:

> import feature ;
> feature.feature cxx11 : on : optional composite propagated ;
> feature.compose <cxx11>on : <toolset>gcc:<cxxflags>-std=c++11 ;

Thanks Steven. Putting this in my user-config.jam works in that it creates
the feature and allows me to use it, but it doesn't actually seem to
pass -std=c++11 to the compiler. I also tried <toolset>gcc-*, and that also
didn't work.

C:\Projects\boost-git\boost\libs\smart_ptr\test>b2 -a -n toolset=gcc
cxx11=on shared_from_this_test

[...]

gcc.compile.c++
..\..\..\bin.v2\libs\smart_ptr\test\shared_from_this_test.test\gcc-mingw-4.8.1\debug\cxx11-on\shared_from_this_test.o

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -Wno-non-virtual-dtor
 -DBOOST_ALL_NO_LIB=1 -I"..\..\.." -c -o
"..\..\..\bin.v2\libs\smart_ptr\test\shared_from_this_test.test\gcc-mingw-4.8.1\debug\cxx11-on\shared_from_this_test.o"
"shared_from_this_test.cpp"

It's not the fact that I'm using gcc-mingw-4.8.1; the cygwin g++ also
doesn't work:

gcc.compile.c++
..\..\..\bin.v2\libs\smart_ptr\test\shared_from_this_test.test\gcc-4.5.3\debug\cxx11-on\shared_from_this_test.o

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -Wno-non-virtual-dtor
 -DBOOST_ALL_NO_LIB=1 -I"..\..\.." -c -o
"..\..\..\bin.v2\libs\smart_ptr\test\shared_from_this_test.test\gcc-4.5.3\debug\cxx11-on\shared_from_this_test.o"
"shared_from_this_test.cpp"


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