From 7482040832cc5b750fee8ad986067927e28f86f2 Mon Sep 17 00:00:00 2001 From: Raoul Gough Date: Mon, 20 Oct 2003 15:49:50 +0000 Subject: [PATCH] Add != overload for shared ptr (Tru64 compiler lib seems to use it) [SVN r20428] --- test/test_vector_shared.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_vector_shared.cpp b/test/test_vector_shared.cpp index 65181f83..78da1b14 100755 --- a/test/test_vector_shared.cpp +++ b/test/test_vector_shared.cpp @@ -23,6 +23,7 @@ typedef boost::shared_ptr int_wrapper_holder; bool operator< (int_wrapper_holder const &, int_wrapper_holder const &); bool operator== (int_wrapper_holder const &, int_wrapper_holder const &); +bool operator!= (int_wrapper_holder const &, int_wrapper_holder const &); #include #include @@ -45,6 +46,11 @@ bool operator== (int_wrapper_holder const &lhs, int_wrapper_holder const &rhs) return (*lhs) == (*rhs); } +bool operator!= (int_wrapper_holder const &lhs, int_wrapper_holder const &rhs) +{ + return (*lhs) != (*rhs); +} + BOOST_PYTHON_MODULE(test_vector_shared_ext) { boost::python::implicitly_convertible ();