~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/noncopyable.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  Boost noncopyable.hpp header file  --------------------------------------//
 
2
 
 
3
//  (C) Copyright Boost.org 1999-2003. Permission to copy, use, modify, sell
 
4
//  and distribute this software is granted provided this copyright
 
5
//  notice appears in all copies. This software is provided "as is" without
 
6
//  express or implied warranty, and with no claim as to its suitability for
 
7
//  any purpose.
 
8
 
 
9
//  See http://www.boost.org/libs/utility for documentation.
 
10
 
 
11
#ifndef BOOST_NONCOPYABLE_HPP_INCLUDED
 
12
#define BOOST_NONCOPYABLE_HPP_INCLUDED
 
13
 
 
14
namespace boost {
 
15
 
 
16
//  Private copy constructor and copy assignment ensure classes derived from
 
17
//  class noncopyable cannot be copied.
 
18
 
 
19
//  Contributed by Dave Abrahams
 
20
 
 
21
class noncopyable
 
22
{
 
23
 protected:
 
24
    noncopyable() {}
 
25
    ~noncopyable() {}
 
26
 private:  // emphasize the following members are private
 
27
    noncopyable( const noncopyable& );
 
28
    const noncopyable& operator=( const noncopyable& );
 
29
};
 
30
 
 
31
} // namespace boost
 
32
 
 
33
#endif  // BOOST_NONCOPYABLE_HPP_INCLUDED