forked from boostorg/detail
Applied John Maddock's Borland patch Moving <true> specialization to unspecialized template
[SVN r9058]
This commit is contained in:
@@ -7,7 +7,9 @@
|
|||||||
// See http://www.boost.org for most recent version including documentation.
|
// See http://www.boost.org for most recent version including documentation.
|
||||||
|
|
||||||
// Revision History
|
// Revision History
|
||||||
// 06 Feb 2001 - Created (David Abrahams)
|
// 09 Feb 01 Applied John Maddock's Borland patch Moving <true>
|
||||||
|
// specialization to unspecialized template (David Abrahams)
|
||||||
|
// 06 Feb 01 Created (David Abrahams)
|
||||||
|
|
||||||
#ifndef SELECT_TYPE_DWA20010206_HPP
|
#ifndef SELECT_TYPE_DWA20010206_HPP
|
||||||
# define SELECT_TYPE_DWA20010206_HPP
|
# define SELECT_TYPE_DWA20010206_HPP
|
||||||
@@ -17,10 +19,8 @@ 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> struct if_true;
|
template <bool>
|
||||||
|
struct if_true
|
||||||
template <>
|
|
||||||
struct if_true<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