mirror of
https://github.com/nlohmann/json.git
synced 2026-10-24 23:08:56 +00:00
fix for #166
This commit is contained in:
1 parent
3905406f9c
commit
9b07504e23
3 files changed
+5
-4
No files matched your search
+2
-2
@@ -94,9 +94,9 @@ struct has_mapped_type
|
||||
{
|
||||
private:
|
||||
template<typename C> static char test(typename C::mapped_type*);
|
||||
template<typename C> static int test(...);
|
||||
template<typename C> static char (&test(...))[2];
|
||||
public:
|
||||
enum { value = sizeof(test<T>(0)) == sizeof(char) };
|
||||
static constexpr bool value = sizeof(test<T>(0)) == 1;
|
||||
};
|
||||
|
||||
/// "equality" comparison for floating point numbers
|
||||
|
||||
Reference in new issue
Block a user