💚 fix compilation
This commit is contained in:
parent
5b229f4cce
commit
33b0bed7fe
2 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -4445,6 +4445,7 @@ class byte_container_with_subtype : public BinaryType
|
|||
// #include <nlohmann/detail/hash.hpp>
|
||||
|
||||
|
||||
#include <cstddef> // size_t
|
||||
#include <functional> // hash
|
||||
|
||||
namespace nlohmann
|
||||
|
@ -4464,7 +4465,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:
|
||||
|
|
Loading…
Reference in a new issue