From 4f0c27048366299284716b486fd31258b718687a Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Fri, 28 Sep 2018 19:55:21 -0500 Subject: [PATCH] Regular null_t. --- include/boost/yaml/json_fwd.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;