Subject: [Boost-bugs] [Boost C++ Libraries] #2121: unspecified_bool_type - based operator bool emulations result in meaningless comparison operators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-07-16 12:21:57
#2121: unspecified_bool_type - based operator bool emulations result in
meaningless comparison operators
-----------------------+----------------------------------------------------
Reporter: anonymous | Type: Bugs
Status: new | Milestone: Boost 1.36.0
Component: None | Version: Boost 1.35.0
Severity: Cosmetic | Keywords: unspecified_bool_type comparison operators
-----------------------+----------------------------------------------------
{{{
#include <iostream>
#include <boost/scoped_ptr.hpp>
int main()
{
typedef boost::scoped_ptr<int> ptr_t;
ptr_t x(new int);
ptr_t y(new int);
std::cout << (x != y) << std::endl;
std::cout << (x == y) << std::endl;
return 0;
}
}}}
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2121> 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:49:58 UTC