Boost logo

Boost :

Subject: [boost] [smart_ptr] error with nullptr_t
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-12-11 14:02:18


Hi,

next follows a compile error with clang 3.1 c++11 just including

#include <boost/shared_ptr.hpp>

iMac-de-Vicente-Botet-Escriba:test viboes$ time bjam toolset=clang-3.1x
ts_ -q
...patience...
...found 1100 targets...
...updating 50 targets...
clang-darwin.compile.c++
../../../bin.v2/libs/thread/test/test_so.test/clang-darwin-3.1x/debug/threading-multi/test_so.o
In file included from ../example/test_so.cpp:6:
In file included from ../../../boost/shared_ptr.hpp:17:
../../../boost/smart_ptr/shared_ptr.hpp:344:22: error: non-friend class
member 'nullptr_t' cannot have a qualified name
     shared_ptr( std::nullptr_t ) BOOST_NOEXCEPT : px( 0 ), pn() //
never throws
                 ~~~~~^
../../../boost/smart_ptr/shared_ptr.hpp:344:33: error: expected ';' at
end of declaration list
     shared_ptr( std::nullptr_t ) BOOST_NOEXCEPT : px( 0 ), pn() //
never throws
                                 ^
                                 ;


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