Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2000-10-27 11:56:04


> 3. You could use partial specialization to make certain cases of
> lexical_cast:
>
> a. The source and target types are the same
>
> template<typename SameType>
> SameType
> lexical_cast (SameType arg)
> {
> return arg;
> }

This is inconsistent with the current meaning of lexical_cast<int>(1.4),
I believe.

--
Peter Dimov
Multi Media Ltd.

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