5 #include <boost/lexical_cast.hpp> 16 template <
typename Target,
typename Source>
17 inline std::optional<Target>
convert(
const Source &arg)
21 return boost::conversion::try_lexical_convert(arg, result) ? std::make_optional(result) : std::nullopt;
std::optional< Target > convert(const Source &arg)
Definition: convert.hpp:17
Definition: convert.hpp:7