Boost logo

Boost :

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


Dave,

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.

t


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk