12 Dec
2013
12 Dec
'13
2:11 p.m.
2013/12/12 Krzysztof Czainski <1czajnik@gmail.com> <...>
* `try_lexical_cast` must be added or not? And if yes, what signature is preffered:
bool try_lexical_cast<Out, In>(Out&, const In&) bool try_lexical_cast<Out, In>(const In&, Out&) boost::optional<Out> try_lexical_cast<Out, In>(const In&)
How about: boost::optional<Out> lexical_cast<Out, In>(const In&, std::nothrow_t)
This will break one of the use cases. For example there'll be an ambiguity beacause of function overloads.: std::transform( values.begin(), values.end(), ret.begin(), &boost::lexical_cast<std::string, int> ); -- Best regards, Antony Polukhin