mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-01-21 02:00:34 +01:00
2ac5d96852
In boost 1.56 the optional library is no longer happy with the implicit conversion from boost::optional<std::string> to bool, so we get the following errors: valijson/include/valijson/schema.hpp:177:16: error: no viable conversion from 'const boost::optional<std::string>' to 'bool' return id; ^~ valijson/include/valijson/schema.hpp:188:16: error: no viable conversion from 'const boost::optional<std::string>' to 'bool' return title; ^~~~~ 2 errors generated. Here we explicitly test against boost::none instead.