Boost logo

Boost :

Subject: Re: [boost] [log] Release candidate 1
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-03-11 08:08:09


On Mon, Mar 11, 2013 at 3:55 PM, Sylvester-Bradley, Gareth
<Gareth.Sylvester-Bradley_at_[hidden]> wrote:
>> I had the idea of making the core default constructible so that it
>> would contain the pointer to the core singleton internally. But that
>> seemed a counterintuitive design to me as noone expects a default
>> constructible object to be actually a singleton.
>
> This is the Monostate pattern, isn't it?
> See e.g. http://c2.com/cgi/wiki?MonostatePattern

Yes, looks like it.


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