diff --git a/doc/html/mp11.html b/doc/html/mp11.html index 2095b7c..bb35201 100644 --- a/doc/html/mp11.html +++ b/doc/html/mp11.html @@ -1853,7 +1853,7 @@ int main()

mp_identity_t<T>

-
template<class T> using mp_identity_t = T;
+
template<class T> using mp_identity_t = typename mp_identity<T>::type;
@@ -3377,7 +3377,7 @@ expression f(std::get<J>(std::forward<Tp>(tp))) for diff --git a/doc/mp11/utility.adoc b/doc/mp11/utility.adoc index 2ddf452..2488986 100644 --- a/doc/mp11/utility.adoc +++ b/doc/mp11/utility.adoc @@ -51,7 +51,7 @@ int main() ## mp_identity_t - template using mp_identity_t = T; + template using mp_identity_t = typename mp_identity::type; ## mp_inherit diff --git a/include/boost/mp11/utility.hpp b/include/boost/mp11/utility.hpp index 35af770..bf58361 100644 --- a/include/boost/mp11/utility.hpp +++ b/include/boost/mp11/utility.hpp @@ -24,7 +24,7 @@ template struct mp_identity }; // mp_identity_t -template using mp_identity_t = T; +template using mp_identity_t = typename mp_identity::type; // mp_inherit template struct mp_inherit: T... {}; diff --git a/include/boost/mp11_single.hpp b/include/boost/mp11_single.hpp index 7e658ab..5898d3f 100644 --- a/include/boost/mp11_single.hpp +++ b/include/boost/mp11_single.hpp @@ -117,7 +117,7 @@ template struct mp_identity }; // mp_identity_t -template using mp_identity_t = T; +template using mp_identity_t = typename mp_identity::type; // mp_inherit template struct mp_inherit: T... {};