Boost logo

Boost :

From: AlisdairM (AlisdairM_at_[hidden])
Date: 2001-09-03 18:51:30

What is gained by doing this though? The template parameter is never used.

Or am I missing something?


-----Original Message-----
From: Fernando Cacciola [mailto:fcacciola_at_[hidden]]
Sent: 03 September 2001 21:45
To: boost_at_[hidden]
Subject: RE: [boost] Documenting non-copyable-ness (was: Re: Review:

I'll take this opportunity to ask this question:
Why isn't noncopyable a template class?

That is:

    template<class T>
    class noncopyable
    private: // emphasize the following members are private
        noncopyable( const noncopyable& );
        const noncopyable& operator=( const noncopyable& );
    }; // noncopyable

Used as:

struct Some : boost::noncopyable< Some>

Boost list run by bdawes at, gregod at, cpdaniel at, john at