🚨 fixed a compiler warning #1224

This commit is contained in:
Niels Lohmann 2018-09-06 07:25:19 +02:00
parent d713727f22
commit eb30ff0615
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
4 changed files with 4 additions and 17 deletions

View file

@ -115,11 +115,9 @@ contains a `mapped_type`, whereas `std::vector` fails the test.
*/
#define NLOHMANN_JSON_HAS_HELPER(type) \
template<typename T> struct has_##type { \
private: \
template<typename U, typename = typename U::type> \
static int detect(U &&); \
static void detect(...); \
public: \
static constexpr bool value = \
std::is_integral<decltype(detect(std::declval<T>()))>::value; \
}