diff --git a/doc/enable_if.qbk b/doc/enable_if.qbk index 3098f82..a64a2b1 100644 --- a/doc/enable_if.qbk +++ b/doc/enable_if.qbk @@ -304,7 +304,7 @@ depends on the template arguments of the class. Note that again, the second argument to `enable_if` is not needed; the default (`void`) is the correct value. -The `enable_if_type` template is usable this scenario but instead of +The `enable_if_has_type` template is usable this scenario but instead of using a type traits to enable or disable a specialization, it use a SFINAE context to check for the existence of a dependent type inside its parameter. For example, the following structure extracts a dependent @@ -318,7 +318,7 @@ class value_type_from }; template -class value_type_from::type> +class value_type_from::type> { typedef typename T::value_type type; }; diff --git a/include/boost/core/enable_if.hpp b/include/boost/core/enable_if.hpp index b5c1a98..5dcef1e 100644 --- a/include/boost/core/enable_if.hpp +++ b/include/boost/core/enable_if.hpp @@ -24,7 +24,7 @@ namespace boost { template - struct enable_if_type + struct enable_if_has_type { typedef R type; }; @@ -86,7 +86,7 @@ namespace boost { struct enable_if_does_not_work_on_this_compiler; template - struct enable_if_type : enable_if_does_not_work_on_this_compiler + struct enable_if_has_type : enable_if_does_not_work_on_this_compiler { }; template diff --git a/test/eif_partial_specializations.cpp b/test/eif_partial_specializations.cpp index 4817a88..a7820cc 100644 --- a/test/eif_partial_specializations.cpp +++ b/test/eif_partial_specializations.cpp @@ -14,7 +14,7 @@ #include #include -using boost::enable_if_type; +using boost::enable_if_has_type; using boost::enable_if_c; using boost::disable_if_c; using boost::enable_if; @@ -55,7 +55,7 @@ class tester3 }; template -class tester3::type> +class tester3::type> { typedef typename T::value_type type; BOOST_STATIC_CONSTANT(bool, value = true);