$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Optional] Lazy initialized optional
From: Gavin Lambert (boost_at_[hidden])
Date: 2018-11-14 22:27:06
On 14/11/2018 23:03, Martijn Otto wrote:
> If you do it in a separate class instead, you can clear the callback
> after invoking it. Then checking whether a callback exists will tell
> you whether the object was initialized.
Unless the callback itself can produce an optional value.