1
0
forked from boostorg/mp11

Change mp_identity_t to be non-transparent, for consistency

This commit is contained in:
Peter Dimov
2017-06-10 04:13:39 +03:00
parent cbf539e16b
commit e926c4ce62
4 changed files with 5 additions and 5 deletions

View File

@@ -1853,7 +1853,7 @@ int main()
<h4 id="mp_identity_t_t">mp_identity_t&lt;T&gt;</h4> <h4 id="mp_identity_t_t">mp_identity_t&lt;T&gt;</h4>
<div class="literalblock"> <div class="literalblock">
<div class="content"> <div class="content">
<pre>template&lt;class T&gt; using mp_identity_t = T;</pre> <pre>template&lt;class T&gt; using mp_identity_t = typename mp_identity&lt;T&gt;::type;</pre>
</div> </div>
</div> </div>
</div> </div>
@@ -3377,7 +3377,7 @@ expression <code>f(std::get&lt;J&gt;(std::forward&lt;Tp&gt;(tp)))</code> for <co
</div> </div>
<div id="footer"> <div id="footer">
<div id="footer-text"> <div id="footer-text">
Last updated 2017-06-10 01:59:58 GTBDT Last updated 2017-06-10 03:46:37 GTBDT
</div> </div>
</div> </div>
</body> </body>

View File

@@ -51,7 +51,7 @@ int main()
## mp_identity_t<T> ## mp_identity_t<T>
template<class T> using mp_identity_t = T; template<class T> using mp_identity_t = typename mp_identity<T>::type;
## mp_inherit<T...> ## mp_inherit<T...>

View File

@@ -24,7 +24,7 @@ template<class T> struct mp_identity
}; };
// mp_identity_t // mp_identity_t
template<class T> using mp_identity_t = T; template<class T> using mp_identity_t = typename mp_identity<T>::type;
// mp_inherit // mp_inherit
template<class... T> struct mp_inherit: T... {}; template<class... T> struct mp_inherit: T... {};

View File

@@ -117,7 +117,7 @@ template<class T> struct mp_identity
}; };
// mp_identity_t // mp_identity_t
template<class T> using mp_identity_t = T; template<class T> using mp_identity_t = typename mp_identity<T>::type;
// mp_inherit // mp_inherit
template<class... T> struct mp_inherit: T... {}; template<class... T> struct mp_inherit: T... {};