mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 14:04:25 +00:00
e1644a68eb
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6319 a592a061-630c-0410-9148-cb99ea01b6c8
34 lines
1005 B
C++
34 lines
1005 B
C++
// Boost noncopyable.hpp header file --------------------------------------//
|
|
|
|
// (C) Copyright Boost.org 1999-2003. Permission to copy, use, modify, sell
|
|
// and distribute this software is granted provided this copyright
|
|
// notice appears in all copies. This software is provided "as is" without
|
|
// express or implied warranty, and with no claim as to its suitability for
|
|
// any purpose.
|
|
|
|
// See http://www.boost.org/libs/utility for documentation.
|
|
|
|
#ifndef BOOST_NONCOPYABLE_HPP_INCLUDED
|
|
#define BOOST_NONCOPYABLE_HPP_INCLUDED
|
|
|
|
namespace boost {
|
|
|
|
// Private copy constructor and copy assignment ensure classes derived from
|
|
// class noncopyable cannot be copied.
|
|
|
|
// Contributed by Dave Abrahams
|
|
|
|
class noncopyable
|
|
{
|
|
protected:
|
|
noncopyable() {}
|
|
~noncopyable() {}
|
|
private: // emphasize the following members are private
|
|
noncopyable( const noncopyable& );
|
|
const noncopyable& operator=( const noncopyable& );
|
|
};
|
|
|
|
} // namespace boost
|
|
|
|
#endif // BOOST_NONCOPYABLE_HPP_INCLUDED
|