Boost logo

Boost Users :

Subject: Re: [Boost-users] [optional] operator <<
From: Andrew Troschinetz (ast_at_[hidden])
Date: 2009-02-19 11:19:30


On Feb 19, 2009, at 5:45 AM, Igor R wrote:

> I've just noticed that the following code might be missleading:
>
> boost::optional<int> opt;
> opt = 0;
> std::cout << opt;

It's a known bug, but there's a patch to fix it in Trac: https://svn.boost.org/trac/boost/ticket/2103

--
Andrew Troschinetz
Applied Research Laboratories

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