Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Container] Problems in Solaris trying to use class flat_set
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2016-05-12 16:59:28


On 12/05/2016 10:19, dariomt_at_[hidden] wrote:
> Hi all,
>
> Trying to compile the following program is problematic with the Solaris
> compiler.
>
> $ cat kk.cpp
> #include <boost/container/flat_set.hpp>
>
> Yes, it is just one line #include'ing flat_set.hpp
>
> - with Boost 1.55.0 the compiler ICE's on me :(
>
> $ CC -Iboost/1_55_0 -features=extensions -library=stlport4 kk.cpp
> >> Assertion: (../lnk/v2mangler.cc, line 776)
> while processing boost/1_55_0/boost/container/detail/utilities.hpp
> at line 1036.
>
> - and with Boost 1.59.0 I have a compile error:
> $ CC -Iboost/1_59_0 -features=extensions -library=stlport4 kk.cpp
> "boost/1_59_0/boost/container/throw_exception.hpp", line 112: Error:
> Cannot cast from const char* to std::out_of_range.
> "boost/1_59_0/boost/container/throw_exception.hpp", line 128: Error:
> Cannot cast from const char* to std::length_error.
> "boost/1_59_0/boost/container/throw_exception.hpp", line 145: Error:
> Cannot cast from const char* to std::logic_error.
> "boost/1_59_0/boost/container/throw_exception.hpp", line 161: Error:
> Cannot cast from const char* to std::runtime_error.
> "boost/1_59_0/boost/container/detail/copy_move_algo.hpp", line 997:
> Error: type is not a member of boost::move_detail::enable_if_c<0, void>.
> 5 Error(s) detected.
>
> Compiler version:
> $ CC -V
> CC: Sun C++ 5.10 SunOS_i386 Patch 128229-32 2013/12/04
>
> Any clues?

I think it's missing <string> include, that was added for the upcoming
Boost 1.61.

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net