forked from boostorg/mp11
Change mp_identity_t to be non-transparent, for consistency
This commit is contained in:
@@ -1853,7 +1853,7 @@ int main()
|
|||||||
<h4 id="mp_identity_t_t">mp_identity_t<T></h4>
|
<h4 id="mp_identity_t_t">mp_identity_t<T></h4>
|
||||||
<div class="literalblock">
|
<div class="literalblock">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>template<class T> using mp_identity_t = T;</pre>
|
<pre>template<class T> using mp_identity_t = typename mp_identity<T>::type;</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -3377,7 +3377,7 @@ expression <code>f(std::get<J>(std::forward<Tp>(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>
|
||||||
|
@@ -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...>
|
||||||
|
|
||||||
|
@@ -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... {};
|
||||||
|
@@ -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... {};
|
||||||
|
Reference in New Issue
Block a user