Skip to content

Commit

Permalink
💚 fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Jul 14, 2020
1 parent 5b229f4 commit 33b0bed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/nlohmann/detail/hash.hpp
@@ -1,5 +1,6 @@
#pragma once

#include <cstddef> // size_t
#include <functional> // hash

namespace nlohmann
Expand All @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion single_include/nlohmann/json.hpp
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 33b0bed

Please sign in to comment.