Boost logo

Boost :

Subject: Re: [boost] [type_traits] Big changes in develop
From: John Maddock (jz.maddock_at_[hidden])
Date: 2015-05-27 13:37:33


> Modifying lines#15-#17, in boost/type_traits/common_type.hpp (shown
> below) causes the tests to pass.
>
> %CC -compat=5 -library=stlport4 -xO4 -mt -erroff=%none -errwarn -m32
> -KPIC -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I..
> -I../libs/type_traits/test/libs/tt2/light/include -c -o
> ./common_type_2_test.o ../libs/type_traits/test/common_type_2_test.cpp
> %
>
> % diff ./common_type.hpp common_type.hpp_orig
> 15,18c15,17
> < #ifdef __SUNPRO_CC
> < # define BOOST_COMMON_TYPE_USE_TYPEOF
> < #endif
> <
> ---
> > #if defined(__SUNPRO_CC) && !defined(BOOST_COMMON_TYPE_DONT_USE_TYPEOF)
> > # define BOOST_COMMON_TYPE_DONT_USE_TYPEOF
> > #endif
> %
>

Doesn't work for me, I see:

sun.compile.c++
../../../bin.v2/libs/type_traits/test/common_type_2_test.test/su
n/debug/stdlib-sun-stlport/common_type_2_test.o
>> Assertion: (../lnk/snresolver.cc, line 1456)
     while processing ../../../boost/type_traits/common_type.hpp at line
139.

     "/opt/solarisstudio12.4/bin/CC" +d -library=stlport4 -g
-erroff=%none -errwa
rn -m32 -KPIC -DBOOST_ALL_NO_LIB=1 -I"../../.."
-I"libs/tt2/light/include" -c -o
  "../../../bin.v2/libs/type_traits/test/common_type_2_test.test/sun/debug/stdlib
-sun-stlport/common_type_2_test.o" "common_type_2_test.cpp"

This is with:

  CC: Sun C++ 5.13 SunOS_i386 2014/10/20

The original failure you reported (plus a few others) should be fixed
now though.

John.


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