imgtools/imglib/boostlibrary/boost/tr1/memory.hpp
author Bob Rosenberg <bob.rosenberg@nokia.com>
Mon, 13 Sep 2010 13:52:18 +0100
changeset 656 88e01c8f013e
parent 600 6d08f4a05d93
permissions -rw-r--r--
Fix merging bug where downstream items somtimes got ignored if they appear after an upstream-only item. Also, reduce the severity of the validation error if a tech-domain is not recognised on a non-Foundation package.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
600
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     1
//  (C) Copyright John Maddock 2005.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     2
//  Use, modification and distribution are subject to the
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     3
//  Boost Software License, Version 1.0. (See accompanying file
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     4
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     5
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     6
#ifndef BOOST_TR1_MEMORY_HPP_INCLUDED
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     7
#  define BOOST_TR1_MEMORY_HPP_INCLUDED
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     8
#  include <boost/tr1/detail/config.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
     9
#  include <boost/detail/workaround.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    10
#  include <memory>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    11
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    12
#ifndef BOOST_HAS_TR1_SHARED_PTR
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    13
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    14
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    15
// This header can get included by boost/shared_ptr.hpp which leads
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    16
// to cyclic dependencies, the workaround is to forward declare all 
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    17
// the boost components, and then include the actual headers afterwards.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    18
// This is fragile, but seems to work, and doesn't require modification
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    19
// of boost/shared_ptr.hpp.
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    20
//
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    21
namespace boost{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    22
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    23
class bad_weak_ptr;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    24
template<class T> class weak_ptr;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    25
template<class T> class shared_ptr;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    26
template<class T> void swap(weak_ptr<T> & a, weak_ptr<T> & b);
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    27
template<class T> void swap(shared_ptr<T> & a, shared_ptr<T> & b);
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    28
template<class T, class U> shared_ptr<T> static_pointer_cast(shared_ptr<U> const & r);
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    29
template<class T, class U> shared_ptr<T> dynamic_pointer_cast(shared_ptr<U> const & r);
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    30
template<class T, class U> shared_ptr<T> const_pointer_cast(shared_ptr<U> const & r);
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    31
template<class D, class T> D * get_deleter(shared_ptr<T> const & p);
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    32
template<class T> class enable_shared_from_this;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    33
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    34
namespace detail{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    35
class shared_count;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    36
class weak_count;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    37
}
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    38
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    39
}
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    40
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    41
namespace std{ namespace tr1{
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    42
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    43
   using ::boost::bad_weak_ptr;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    44
   using ::boost::shared_ptr;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    45
#if !BOOST_WORKAROUND(__BORLANDC__, < 0x0582)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    46
   using ::boost::swap;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    47
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    48
   using ::boost::static_pointer_cast;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    49
   using ::boost::dynamic_pointer_cast;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    50
   using ::boost::const_pointer_cast;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    51
   using ::boost::get_deleter;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    52
   using ::boost::weak_ptr;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    53
   using ::boost::enable_shared_from_this;
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    54
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    55
} }
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    56
#include <boost/shared_ptr.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    57
#include <boost/weak_ptr.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    58
#include <boost/enable_shared_from_this.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    59
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    60
#else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    61
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    62
#  ifdef BOOST_HAS_INCLUDE_NEXT
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    63
#     include_next BOOST_TR1_HEADER(memory)
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    64
#  else
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    65
#     include <boost/tr1/detail/config_all.hpp>
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    66
#     include BOOST_TR1_STD_HEADER(BOOST_TR1_PATH(memory))
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    67
#  endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    68
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    69
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    70
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    71
#endif
6d08f4a05d93 add deprecated files
jjkang
parents:
diff changeset
    72