Boost logo

Boost Users :

From: Markus Werle (yg-boost-users_at_[hidden])
Date: 2003-05-14 07:31:44


Paul Wendt wrote:

> Hello,
>
> I'm trying to get lexical_cast to convert a std::string to bool; I realize
> that
> this is done with normal IOStreams by using boolalpha. Is there a way
> to do this with lexical_cast? I saw some old posts in the archives and
> they were apparently with older code bases because I was unable to get
> their code snippets to work properly [either that or my compiler is
> messed up :)].
>
> For reference, I use Visual Studio .NET 2002.
>
 
On Tuesday 06 May 2003 14:47:37 I proposed this (with code)
in gmane.comp.lib.boost.devel, see subject
"boost::lexical_cast<bool>("true");"

Markus


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net