[Boost-bugs] [Boost C++ Libraries] #8712: [function] Comparison with nullptr differs from std::function<>

Subject: [Boost-bugs] [Boost C++ Libraries] #8712: [function] Comparison with nullptr differs from std::function<>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-19 11:04:18


#8712: [function] Comparison with nullptr differs from std::function<>
------------------------------+----------------------
 Reporter: boost@… | Owner: dgregor
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: function
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: nullptr C++11 |
------------------------------+----------------------
 Whether or not boost::function<> ''should'' support comparison with
 (C++11) nullptr is another issue, but at the moment it is inconsistent
 with std::function<>.

 E.g.

 {{{
 boost::function<void ()> bf;
 bool c1 = (bf == nullptr); // currently false

 std::function<void ()> sf;
 bool c2 = (sf == nullptr); // true

 assert(c1 == c2);
 }}}

 Tested with g++ 4.6.3 and Visual Studio 2012.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8712>
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:13 UTC