Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4009: lexical_cast to multimember object fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-16 08:12:21
#4009: lexical_cast to multimember object fails
---------------------------------------------------+------------------------
Reporter: Darko Veberic <darko.veberic@â¦> | Owner: nasonov
Type: Bugs | Status: closed
Milestone: Boost 1.43.0 | Component: lexical_cast
Version: Boost 1.40.0 | Severity: Not Applicable
Resolution: fixed | Keywords:
---------------------------------------------------+------------------------
Changes (by Darko Veberic <darko.veberic@â¦>):
* status: new => closed
* resolution: => fixed
* severity: Showstopper => Not Applicable
Comment:
thanks, this solved the problem. the input operator thus has to be defined
as
{{{
istream&
operator>>(istream& is, Foo& f)
{
return is >> f.fA >> ws >> f.fB;
}
}}}
(what a n00b mistake...)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4009#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC