2 ms·
They could add an overload like std::expected<T, std::errc> from_chars(std::string_view). That way, since the input arguments are different, there'd be no issue
by cherryteastain 2y ago
They could add an overload like std::expected<T, std::errc> from_chars(std::string_view). That way, since the input arguments are different, there'd be no issues about overload resolution.
- gpderetta 2y agoBut overloads providing slightly different interfaces are a bane to generic programming. Overloads are already confusing, if they can't be used generically there is really no point in reusing the name.