Boost logo

Boost Users :

Subject: Re: [Boost-users] casting with boost
From: Igor R (boost.lists_at_[hidden])
Date: 2009-08-11 10:42:33


> i'm trying to do some simple casts using boost, to and from webToolkit
> widgets, i.e
>
> int i = 42;
> WString str;
> str = boost::lexical_cast<WString>(i);
>
> i get a compilaton error that goes something like this:
> lexical_cast.hpp(768): no operator ">>" matches these oprands...

Here's the reference of lexical_cast:
http://www.boost.org/doc/libs/1_39_0/libs/conversion/lexical_cast.htm#lexical_cast


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