Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2004-01-14 07:59:13


Pavel Vozenilek <pavel_vozenilek_at_[hidden]> wrote in message
news:bu3csc$p17$1_at_sea.gmane.org...
> BCB 6.4:
>
> I am getting assert within optional library. Bellow is Ctrl+C of error box:
>
>
> ---------------------------
> personal_archive.exe
> ---------------------------
> Assertion failed: this->is_initialized(), file
> C:\boost\boost_1_31_0_rc1\boost/optional.hpp, line 489
> ---------------------------
> OK
> ---------------------------
>
It means that you're accessing an uninitialzed optional somewhere, as in:

optional<int> opt ;
int v = *opt ; // assert here!

HTH

Fernando Cacciola
SciSoft


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk