🚧 try to fix some warnings in MSVC

This commit is contained in:
Niels Lohmann committed 2017-02-20 18:32:11 +01:00
1 parent f7075be93a
commit 1a6d7f5bca
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -72,8 +72,8 @@ TEST_CASE("concepts")
// X::size_type must return an unsigned integer
CHECK((std::is_unsigned<json::size_type>::value));
// X::size_type can represent any non-negative value of X::difference_type
CHECK(std::numeric_limits<json::difference_type>::max() <=
std::numeric_limits<json::size_type>::max());
CHECK(static_cast<size_t>(std::numeric_limits<json::difference_type>::max()) <=
static_cast<size_t>(std::numeric_limits<json::size_type>::max()));
// the expression "X u" has the post-condition "u.empty()"
{