Boost logo

Boost Users :

Subject: Re: [Boost-users] Compile error with boost_1_41
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-12-22 13:58:43


On Tue, Dec 22, 2009 at 10:57 AM, Emil Dotchevski
<emildotchevski_at_[hidden]> wrote:
> On Tue, Dec 22, 2009 at 8:25 AM, Steve Ong <stevenong_2006_at_[hidden]> wrote:
>> g++ -o chat_client chat_client.cpp  -I/home/song/MyProjects/LibDist/boostS_1_41/include -L/home/song/MyProjects/LibDist/boostS_1_41/lib -lposix4 -lboost_thread  -lboost_system -pthreads -lsocket
>> In file included from /home/song/MyProjects/LibDist/boostS_1_41/include/boost/thread/future.hpp:12,
>>                  from /home/song/MyProjects/LibDist/boostS_1_41/include/boost/thread.hpp:24,
>>                  from chat_client.cpp:16:
>> /home/song/MyProjects/LibDist/boostS_1_41/include/boost/exception_ptr.hpp:43: error: looser throw specifier for `virtual boost::exception_ptr::~exception_ptr()'
>> /home/song/MyProjects/LibDist/boostS_1_41/include/boost/exception/detail/exception_ptr_base.hpp:27: error:   overriding `virtual boost::exception_detail::exception_ptr_base::~exception_ptr_base() throw ()'
>> make: *** [chat_client_] Error 1
>>
>> ...Any advice to fix this would be appreciated.
>
> Already fixed in trunk (an example of an error introduced by "fixing"
> idiotic GCC warning.) A temporary patch is to add this destructor to
> exception_ptr, in boost/exception_ptr.hpp:
>
> ~exception_ptr() throw() { }
>
> Boost 1.40 doesn't have this problem.

I forgot to mention, another workaround is to upgrade to a newer GCC version.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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