Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-04-11 05:35:09

"Reece Dunn" <msclrhd_at_[hidden]> writes:

> Drawing influence from Python, I suggest that the non-throwing version look like:
> std::pair<T,bool> string_to<T>(x)
> allowing:
> fn( string_to<Object>(object).first );

How does that draw influence from Python?
That interface doesn't allow for types that can't be default

  optional<T> string_to<T>(x)

seems more likely.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at