Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 853988 - Replace uses of Conditional<..., TrueType, FalseType>::T…

…ype with IntegralConstant<bool, ...>. r=froydnj

--HG--
extra : rebase_source : 1c2deaac32b2ddefa67bb935f961a182aad31ad2
  • Loading branch information...
commit d86f80cbb76d839b16bde3e7e88b4efc949b4fd3 1 parent d583188
@jswalden jswalden authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 mfbt/TypeTraits.h
View
7 mfbt/TypeTraits.h
@@ -159,9 +159,6 @@ struct BaseOfTester<Type, const Type> : TrueType {};
} /* namespace detail */
-template<bool Condition, typename A, typename B>
-struct Conditional;
-
/*
* IsBaseOf allows to know whether a given class is derived from another.
*
@@ -176,7 +173,7 @@ struct Conditional;
*/
template<class Base, class Derived>
struct IsBaseOf
- : Conditional<detail::BaseOfTester<Base, Derived>::value, TrueType, FalseType>::Type
+ : IntegralConstant<bool, detail::BaseOfTester<Base, Derived>::value>
{};
namespace detail {
@@ -223,7 +220,7 @@ struct ConvertibleTester
*/
template<typename From, typename To>
struct IsConvertible
- : Conditional<detail::ConvertibleTester<From, To>::value, TrueType, FalseType>::Type
+ : IntegralConstant<bool, detail::ConvertibleTester<From, To>::value>
{};
/* 20.9.7 Transformations between types */
Please sign in to comment.
Something went wrong with that request. Please try again.