>From d91f653e689fdb33dbd0f7a17b6d0f123427cf39 Mon Sep 17 00:00:00 2001 Message-Id: From: Tim Blechmann Date: Sat, 30 Jun 2012 12:08:00 +0200 Subject: [PATCH] exception/thread/typeof: use specify namespace for enable_if/disable_if Signed-off-by: Tim Blechmann --- boost/exception/info.hpp | 4 ++-- boost/exception/to_string.hpp | 4 ++-- boost/thread/detail/move.hpp | 2 +- boost/thread/detail/thread.hpp | 8 ++++---- boost/typeof/native.hpp | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/boost/exception/info.hpp b/boost/exception/info.hpp index 7b56076..ced351a 100644 --- a/boost/exception/info.hpp +++ b/boost/exception/info.hpp @@ -24,7 +24,7 @@ boost { template inline - typename enable_if,std::string>::type + typename boost::enable_if,std::string>::type to_string( error_info const & x ) { return to_string(x.value()); @@ -186,7 +186,7 @@ boost template inline - typename enable_if,E const &>::type + typename boost::enable_if,E const &>::type operator<<( E const & x, error_info const & v ) { return exception_detail::set_info(x,v); diff --git a/boost/exception/to_string.hpp b/boost/exception/to_string.hpp index 59bf83d..bbac3dc 100644 --- a/boost/exception/to_string.hpp +++ b/boost/exception/to_string.hpp @@ -23,7 +23,7 @@ boost to_string_detail { template - typename disable_if,char>::type to_string( T const & ); + typename boost::disable_if,char>::type to_string( T const & ); template struct has_to_string_impl; @@ -46,7 +46,7 @@ boost template inline - typename enable_if,std::string>::type + typename boost::enable_if,std::string>::type to_string( T const & x ) { std::ostringstream out; diff --git a/boost/thread/detail/move.hpp b/boost/thread/detail/move.hpp index 748b8dc..fbc50bf 100644 --- a/boost/thread/detail/move.hpp +++ b/boost/thread/detail/move.hpp @@ -52,7 +52,7 @@ namespace boost #ifndef BOOST_NO_SFINAE template - typename enable_if >, boost::detail::thread_move_t >::type move(T& t) + typename boost::enable_if >, boost::detail::thread_move_t >::type move(T& t) { return boost::detail::thread_move_t(t); } diff --git a/boost/thread/detail/thread.hpp b/boost/thread/detail/thread.hpp index bc20227..e932ca9 100644 --- a/boost/thread/detail/thread.hpp +++ b/boost/thread/detail/thread.hpp @@ -212,14 +212,14 @@ namespace boost template explicit thread(F f // todo Disable also if Or is_same::type, thread> - , typename disable_if, dummy* >::type=0): + , typename boost::disable_if, dummy* >::type=0): thread_info(make_thread_info(f)) { start_thread(); } template thread(attributes& attrs, F f - , typename disable_if, dummy* >::type=0): + , typename boost::disable_if, dummy* >::type=0): thread_info(make_thread_info(f)) { start_thread(attrs); @@ -227,7 +227,7 @@ namespace boost #endif template explicit thread(BOOST_THREAD_RV_REF(F) f - , typename disable_if::type, thread>, dummy* >::type=0 + , typename boost::disable_if::type, thread>, dummy* >::type=0 ): thread_info(make_thread_info(f)) { @@ -268,7 +268,7 @@ namespace boost } template - thread(F f,A1 a1,typename disable_if, dummy* >::type=0): + thread(F f,A1 a1,typename boost::disable_if, dummy* >::type=0): thread_info(make_thread_info(boost::bind(boost::type(),f,a1))) { start_thread(); diff --git a/boost/typeof/native.hpp b/boost/typeof/native.hpp index 8197e28..c108fb8 100644 --- a/boost/typeof/native.hpp +++ b/boost/typeof/native.hpp @@ -27,11 +27,11 @@ namespace boost { namespace type_of { T& ensure_obj(const T&); # else template - typename enable_if, T&>::type + typename boost::enable_if, T&>::type ensure_obj(T&); template - typename disable_if, T&>::type + typename boost::disable_if, T&>::type ensure_obj(const T&); # endif }} -- 1.7.9.5