Skip to content

Commit 69d24f8

Browse files
authored
Fix Variant (#768)
1 parent 996c520 commit 69d24f8

File tree

4 files changed

+782
-366
lines changed

4 files changed

+782
-366
lines changed

include/aws/crt/TypeTraits.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,19 @@ namespace Aws
2626
struct IsSpecializationOf<Primary<Args...>, Primary> : std::true_type
2727
{
2828
};
29+
30+
/**
31+
* Forms the logical conjunction of the type traits Args..., effectively performing a logical AND on the
32+
* sequence of traits.
33+
*/
34+
template <typename... Args> struct Conjunction : std::true_type
35+
{
36+
};
37+
38+
template <typename Arg, typename... Args>
39+
struct Conjunction<Arg, Args...> : std::conditional<Arg::value, Conjunction<Args...>, std::false_type>::type
40+
{
41+
};
42+
2943
} // namespace Crt
3044
} // namespace Aws

0 commit comments

Comments
 (0)