🚨 fixed a compiler warning #1224
This commit is contained in:
parent
d713727f22
commit
eb30ff0615
4 changed files with 4 additions and 17 deletions
|
@ -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; \
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue