Re: [Boost-bugs] [Boost C++ Libraries] #5487: Trying to get<nullptr_t> from a variant results in error with vs10

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5487: Trying to get<nullptr_t> from a variant results in error with vs10
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-12-10 19:20:45


#5487: Trying to get<nullptr_t> from a variant results in error with vs10
-------------------------------+-----------------------------------------
  Reporter: dd0t@… | Owner: no-maintainer
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: utility
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords: nullptr_t variant addressof
-------------------------------+-----------------------------------------

Comment (by marshall):

 Also fails on a (fairly recent) clang:

 {{{
 $ clang++ -std=c++11 -stdlib=libc++ -I /Sources/boost/SVN/release/
 boost.cpp
 In file included from boost.cpp:1:
 /Sources/boost/SVN/release/boost/utility/addressof.hpp:59:12: error: call
 to 'f'
       is ambiguous
     return boost::detail::addressof_impl<T>::f(
 boost::detail::addr_impl...
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 boost.cpp:5:5: note: in instantiation of function template specialization
       'boost::addressof<nullptr_t>' requested here
     boost::addressof(p);
     ^
 /Sources/boost/SVN/release/boost/utility/addressof.hpp:37:23: note:
 candidate
       function
     static inline T * f( T & v, long )
                       ^
 /Sources/boost/SVN/release/boost/utility/addressof.hpp:43:23: note:
 candidate
       function
     static inline T * f( T * v, int )
                       ^
 1 error generated.
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5487#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC