vrshoot

diff libs/assimp/boost/noncopyable.hpp @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/assimp/boost/noncopyable.hpp	Sat Feb 01 19:58:19 2014 +0200
     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