Fix MSVC build, take 2

This commit is contained in:
Victor Zverovich
2018-07-04 14:24:07 -07:00
parent e928b6724c
commit 479ee2a8c6
9 changed files with 44 additions and 30 deletions
+4 -4
View File
@@ -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