From: Ross Smith (rosss_at_[hidden])
Date: 2003-08-13 21:13:52
Aleksandr Golovanov wrote:
> Hello, I'm pretty new here, but I've extensively used boost library for
> about a year.
> Yesterday, I ran into a small problem, lexical_cast accepts copy instead of
> (const)? reference to a source. I have a class which I would prefer to be
> noncopyable and castable with laxical_cast at the same time. I've been
> forced to reject noncopyable concept because of that strange feature of the
> lexical_cast. Is there any particular reason of such feature? And if not, is
> it possible to fix it in new release?
Wrap the object in boost::cref().
-- Ross Smith ...................... Pharos Systems, Auckland, New Zealand "Remember when we told you there was no future? Well, this is it." -- Blank Reg
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk