1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/noncopyable.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,36 @@
1.4 +// Boost noncopyable.hpp header file --------------------------------------//
1.5 +
1.6 +// (C) Copyright Beman Dawes 1999-2003. Distributed under the Boost
1.7 +// Software License, Version 1.0. (See accompanying file
1.8 +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
1.9 +
1.10 +// See http://www.boost.org/libs/utility for documentation.
1.11 +
1.12 +#ifndef BOOST_NONCOPYABLE_HPP_INCLUDED
1.13 +#define BOOST_NONCOPYABLE_HPP_INCLUDED
1.14 +
1.15 +namespace boost {
1.16 +
1.17 +// Private copy constructor and copy assignment ensure classes derived from
1.18 +// class noncopyable cannot be copied.
1.19 +
1.20 +// Contributed by Dave Abrahams
1.21 +
1.22 +namespace noncopyable_ // protection from unintended ADL
1.23 +{
1.24 + class noncopyable
1.25 + {
1.26 + protected:
1.27 + noncopyable() {}
1.28 + ~noncopyable() {}
1.29 + private: // emphasize the following members are private
1.30 + noncopyable( const noncopyable& );
1.31 + const noncopyable& operator=( const noncopyable& );
1.32 + };
1.33 +}
1.34 +
1.35 +typedef noncopyable_::noncopyable noncopyable;
1.36 +
1.37 +} // namespace boost
1.38 +
1.39 +#endif // BOOST_NONCOPYABLE_HPP_INCLUDED