mirror of
https://github.com/nlohmann/json.git
synced 2025-08-09 05:22:48 +03:00
💚 fix compilation
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef> // size_t
|
||||
#include <functional> // hash
|
||||
|
||||
namespace nlohmann
|
||||
@@ -19,7 +20,7 @@ std::size_t hash(const BasicJsonType& j)
|
||||
switch (j.type())
|
||||
{
|
||||
case BasicJsonType::value_t::null:
|
||||
case BasicJsonType::discarded:
|
||||
case BasicJsonType::value_t::discarded:
|
||||
return combine(static_cast<std::size_t>(j.type()), 0);
|
||||
|
||||
case BasicJsonType::value_t::object:
|
||||
|
Reference in New Issue
Block a user