Boost logo

Boost Users :

Subject: Re: [Boost-users] thread-safe initialization for singleton
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-08-22 05:41:13


Le 22/08/2010 07:59, Philipp Kraus wrote:

> The first example http://www.boostcookbook.com/Recipe:/1235044 don't
> have static members,

That doesn't change anything.
A singleton with static members is kind of pointless though.

> because
> myclass is a class with is a master class of the Singleton.

What is that supposed to mean?

> In my class
> I've got a static property of the boost mersenne twister and get the
> rase condition error on it's get method:
>
> boost::detail::backward_compatible_uniform_01<boost::random::detail::pass_through_engine<boost::random::mersenne_twister<unsigned
> int, 32, 624, 397, 31, 2567483615u, 11, 7, 2636928640u, 15, 4022730752u,
> 18, 3346425566u>&>, double>::operator()()

I don't understand what this is supposed to mean either.
Why not attach a testcase showing the problem?


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