|
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?
AlisdairM
-----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:
Boost.Threads)
I'll take this opportunity to ask this question:
Why isn't noncopyable a template class?
That is:
template<class T>
class noncopyable
{
protected:
noncopyable(){}
~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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk