[pkg-boost-devel] Bug#768569: libboost-dev: get_pointer(std::shared_ptr<T> const&) not defined on clang

Olaf van der Spek olafvdspek at gmail.com
Sat Nov 8 13:12:02 UTC 2014


Package: libboost-dev
Version: 1.55.0.2
Severity: normal

Hi,

boost::get_pointer(std::shared_ptr<T> const&) appears to be undefined on clang:

$ g++ c.cpp -std=c++11


$ clang c.cpp -std=c++11   
c.cpp:7:2: error: no matching function for call to 'get_pointer'
        boost::get_pointer(p);
        ^~~~~~~~~~~~~~~~~~
/usr/include/boost/ref.hpp:182:29: note: candidate template ignored: could not match 'reference_wrapper' against 'shared_ptr'
template<class T> inline T* get_pointer( reference_wrapper<T> const & r )
                            ^
/usr/include/boost/get_pointer.hpp:20:23: note: candidate template ignored: could not match 'T *' against 'std::shared_ptr<int>'
template<class T> T * get_pointer(T * p)
                      ^
/usr/include/boost/get_pointer.hpp:27:23: note: candidate template ignored: could not match 'auto_ptr' against 'shared_ptr'
template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                      ^
1 error generated.


$ cat c.cpp 
#include <boost/bind.hpp>
#include <memory>

int main()
{
        std::shared_ptr<int> p;
        boost::get_pointer(p);
        return 0;
}

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libboost-dev depends on:
ii  libboost1.55-dev  1.55.0+dfsg-3

libboost-dev recommends no packages.

Versions of packages libboost-dev suggests:
pn  libboost-doc  <none>

-- no debconf information



More information about the pkg-boost-devel mailing list