Fix MSVC build, take 2
This commit is contained in:
+4
-4
@@ -11,6 +11,10 @@
|
||||
|
||||
#include "fmt/ranges.h"
|
||||
|
||||
/// Check if 'if constexpr' is supported.
|
||||
#if (__cplusplus > 201402L) || \
|
||||
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
|
||||
|
||||
#include "gtest.h"
|
||||
|
||||
#include <vector>
|
||||
@@ -46,10 +50,6 @@ TEST(RangesTest, FormatTuple) {
|
||||
EXPECT_EQ("(42, 3.14159, \"this is tuple\", 'i')", fmt::format("{}", tu1));
|
||||
}
|
||||
|
||||
/// Check if 'if constexpr' is supported.
|
||||
#if (__cplusplus > 201402L) || \
|
||||
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
|
||||
|
||||
struct my_struct {
|
||||
int32_t i;
|
||||
std::string str; // can throw
|
||||
|
||||
Reference in New Issue
Block a user