diff --git a/include/boost/smart_ptr/intrusive_ptr.hpp b/include/boost/smart_ptr/intrusive_ptr.hpp index ddb20c0..11b4765 100644 --- a/include/boost/smart_ptr/intrusive_ptr.hpp +++ b/include/boost/smart_ptr/intrusive_ptr.hpp @@ -285,7 +285,7 @@ template intrusive_ptr dynamic_pointer_cast( intrusive_ptr< // operator<< -template std::ostream & operator<< (std::ostream & os, intrusive_ptr const & p) +template std::basic_ostream & operator<< (std::basic_ostream & os, intrusive_ptr const & p) { os << p.get(); return os; diff --git a/include/boost/smart_ptr/shared_ptr.hpp b/include/boost/smart_ptr/shared_ptr.hpp index 2431a33..2deed9b 100644 --- a/include/boost/smart_ptr/shared_ptr.hpp +++ b/include/boost/smart_ptr/shared_ptr.hpp @@ -775,7 +775,7 @@ template inline typename shared_ptr::element_type * get_pointer(shar // operator<< -template std::ostream & operator<< (std::ostream & os, shared_ptr const & p) +template std::basic_ostream & operator<< (std::basic_ostream & os, shared_ptr const & p) { os << p.get(); return os;