Skip to content

Commit 5301e21

Browse files
committed
Add space to prevent adjacent >> in type (pre-C++11)
1 parent b6d5916 commit 5301e21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/nonstd/variant.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
#if variant_CPP11_OR_GREATER || variant_COMPILER_MSVC_VERSION >= 10
8585
# define variant_HAVE_AUTO 1
8686
# define variant_HAVE_NULLPTR 1
87+
# define variant_HAVE_STATIC_ASSERT 1
8788
#endif
8889

8990
#if variant_CPP11_OR_GREATER || variant_COMPILER_MSVC_VERSION >= 12
@@ -725,7 +726,7 @@ using variant_alternative_t = typename variant_alternative<I, T>::type;
725726
#endif
726727

727728
#if variant_FEATURE_HAVE_VARIANT_ALTERNATIVE_T_MACRO
728-
# define variant_alternative_T(I,T) typename variant_alternative<I, T>::type
729+
# define variant_alternative_T(I,T) typename nonstd::variant_alternative<I,T >::type
729730
#endif
730731

731732
// NTS:implement specializes the std::uses_allocator type trait

0 commit comments

Comments
 (0)