Boost logo

Boost Users :

From: contact_at_[hidden]
Date: 2007-07-20 05:10:09


Hi,

>From the documentation I think this should be possible:

optional<unsigned short> us;
optional<unsigned int> ui;
ui = us;

In this case it should just leave ui uninitialized. But instead I hit the
assertion in reference_const_type get() const, because there is a call to
rhs.get() in the operator=(). Is this a bug, or am I doing something wrong?

I'm using MSVC7.1.

Best regards,
Christian Larsen


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