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


_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to