Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-02-14 15:50:12


I went for the former solution. Note the comment:
     // inside one of your own headers ...

-Dave
----- Original Message -----
From: "Beman Dawes" <bdawes_at_[hidden]>
To: "Boost.org mailing list" <boost_at_[hidden]>
Sent: Wednesday, February 14, 2001 11:13 AM
Subject: [boost] Class noncopyable example

> The docs for utility.hpp give this example:
>
> // inside one of your own headers ...
> #include <boost/utility.hpp>
>
> class ResourceLadenFileSystem : noncopyable {
>
> The last line should be changed, possibly to:
>
> class ResourceLadenFileSystem : boost::noncopyable {
>
> Although personally I've come to view noncopyable as some kind of C++
> pseudo keyword, and so prefer:
>
> // inside one of your own headers ...
> #include <boost/utility.hpp>
> using boost::noncopyable;
>
> class ResourceLadenFileSystem : noncopyable {
>
> But it's Dave Abrahams class, so I'll let him change it to whatever he
> thinks best:-)
>
> --Beman
>
>
>
>
>


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