Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-06-21 12:22:32


Chris Ross wrote:
> When I try to use boost::lexical_cast<int>(anyvar), I get compile
> errors as:
> Line 51 of is:
> int v = boost::lexical_cast<int>(is);
> Can anyone else figure out why the above compile fails?

any does not support streaming, which is required for lexical_cast.

std::cout << is << std::endl;

should give similar errors.

In Christ,
Steven Watanabe

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at