1 parent f566757 commit 2ed5d30Copy full SHA for 2ed5d30
1 file changed
headers/type_traits
@@ -368,6 +368,18 @@ template<class T>
368
using decay_t = T; // SIMPLIFIED typedef
369
#endif
370
371
+#if CPPREFERENCE_SIMPLIFY_TYPEDEFS
372
+
373
+template<bool, class T = void> struct enable_if {
374
+ typedef int type; // SIMPLIFIED type
375
+};
376
+#if CPPREFERENCE_STDVER >= 2014
377
+template<bool, class T = void>
378
+using enable_if_t = int; // SIMPLIFIED typedef
379
+#endif
380
381
+#else
382
383
template<bool, class T = void> struct enable_if {};
384
385
template<class T>
@@ -379,6 +391,8 @@ template<bool B, class T = void>
391
using enable_if_t = typename enable_if<B, T>::type;
392
393
394
+#endif // CPPREFERENCE_SIMPLIFY_TYPEDEFS
395
396
template<bool, class T, class F> struct conditional {
397
typedef int type; // SIMPLIFIED type
398
};
0 commit comments