Boost logo

Boost :

From: Kevin Yuan (farproc_at_[hidden])
Date: 2007-04-04 22:34:06


> 2007/4/4, Martin Bonner <Martin.Bonner_at_[hidden]>:
> Static variable in an inline function.
>

Yes, I agree. Something like:

// st.h
class st
{
private:
        st(){}
public:
        static st* get_instance()
        {
                static st* inst = new st;
                return inst;
        }
};


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