diff --git a/include/boost/smart_ptr/owner_equal_to.hpp b/include/boost/smart_ptr/owner_equal_to.hpp index e4200f7..a43e954 100644 --- a/include/boost/smart_ptr/owner_equal_to.hpp +++ b/include/boost/smart_ptr/owner_equal_to.hpp @@ -5,6 +5,8 @@ // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt +#include + namespace boost { @@ -14,7 +16,7 @@ template struct owner_equal_to typedef T first_argument_type; typedef T second_argument_type; - template bool operator()( U const & u, V const & v ) const + template bool operator()( U const & u, V const & v ) const BOOST_NOEXCEPT { return u.owner_equals( v ); } diff --git a/include/boost/smart_ptr/owner_less.hpp b/include/boost/smart_ptr/owner_less.hpp index 5f50aeb..1c0a7d2 100644 --- a/include/boost/smart_ptr/owner_less.hpp +++ b/include/boost/smart_ptr/owner_less.hpp @@ -14,6 +14,8 @@ // See http://www.boost.org/libs/smart_ptr/ for documentation. // +#include + namespace boost { @@ -23,7 +25,7 @@ template struct owner_less typedef T first_argument_type; typedef T second_argument_type; - template bool operator()( U const & u, V const & v ) const + template bool operator()( U const & u, V const & v ) const BOOST_NOEXCEPT { return u.owner_before( v ); }