27 #ifndef FABLE_JSON_WITH_BOOST_HPP_ 28 #define FABLE_JSON_WITH_BOOST_HPP_ 30 #include <nlohmann/json.hpp> 32 #include <boost/optional.hpp> 45 struct adl_serializer<
boost::optional<T>> {
46 static void to_json(json& j,
const boost::optional<T>& opt) {
54 static void from_json(
const json& j, boost::optional<T>& opt) {
55 if (j.type() == json::value_t::null) {
65 #endif // FABLE_JSON_WITH_BOOST_HPP_
Definition: confable.hpp:132