mirror of
https://github.com/boostorg/detail.git
synced 2025-07-31 04:47:15 +02:00
Rolled unspecialized template back in
[SVN r9116]
This commit is contained in:
@ -19,8 +19,7 @@ namespace boost { namespace detail {
|
|||||||
// Template class if_true -- select among 2 types based on a bool constant expression
|
// Template class if_true -- select among 2 types based on a bool constant expression
|
||||||
// Usage:
|
// Usage:
|
||||||
// typename if_true<(bool_const_expression)>::template then<true_type, false_type>::type
|
// typename if_true<(bool_const_expression)>::template then<true_type, false_type>::type
|
||||||
template <bool>
|
template <bool> struct if_true
|
||||||
struct if_true
|
|
||||||
{
|
{
|
||||||
template <class T, class F>
|
template <class T, class F>
|
||||||
struct then { typedef T type; };
|
struct then { typedef T type; };
|
||||||
|
Reference in New Issue
Block a user