Boost logo

Boost :

From: Toon Knapen (toon_at_[hidden])
Date: 2001-05-30 04:31:37


How do you feel about overloading lexical_cast with a version that does
not need explicit template types specified such as the following :

template < typename Target, typename Source >
void lexical_cast(Target& result, const Source& arg) {
  result = boost::lexical_cast< Target >( arg );

Here the system will figure the Target-type out for you.


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