2#include <ossia/detail/config.hpp>
8#if defined(__cpp_lib_to_chars)
11#include <boost/lexical_cast.hpp>
23static std::optional<T> parse_strict(std::string_view instance)
noexcept
26#if defined(__cpp_lib_to_chars)
27 const auto begin = instance.data();
28 const auto end = instance.data() + instance.size();
29 const auto [ptr, ec] = std::from_chars(begin, end, n);
30 return (ec == std::errc{} && ptr == end) ? std::optional<T>{n} : std::nullopt;
32 if(boost::conversion::detail::try_lexical_convert(instance, n))