diff --git a/include/boost/yaml/json_fwd.hpp b/include/boost/yaml/json_fwd.hpp index 23878f51..0d37d389 100644 --- a/include/boost/yaml/json_fwd.hpp +++ b/include/boost/yaml/json_fwd.hpp @@ -13,7 +13,11 @@ namespace boost { namespace json { enum class value_kind { object, array, number, string, boolean, null }; struct null_t - {}; + { + bool operator==(null_t) const noexcept { return true; } + bool operator!=(null_t) const noexcept { return false; } + bool operator<(null_t) const noexcept { return false; } + }; template T const & get(value const & v) noexcept;