os/ossrv/ossrv_pub/boost_apis/boost/python/detail/dependent.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/python/detail/dependent.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,27 @@
     1.4 +// Copyright David Abrahams 2002.
     1.5 +// Distributed under the Boost Software License, Version 1.0. (See
     1.6 +// accompanying file LICENSE_1_0.txt or copy at
     1.7 +// http://www.boost.org/LICENSE_1_0.txt)
     1.8 +#ifndef DEPENDENT_DWA200286_HPP
     1.9 +# define DEPENDENT_DWA200286_HPP
    1.10 +
    1.11 +namespace boost { namespace python { namespace detail { 
    1.12 +
    1.13 +// A way to turn a concrete type T into a type dependent on U. This
    1.14 +// keeps conforming compilers (those implementing proper 2-phase
    1.15 +// name lookup for templates) from complaining about incomplete
    1.16 +// types in situations where it would otherwise be inconvenient or
    1.17 +// impossible to re-order code so that all types are defined in time.
    1.18 +
    1.19 +// One such use is when we must return an incomplete T from a member
    1.20 +// function template (which must be defined in the class body to
    1.21 +// keep MSVC happy).
    1.22 +template <class T, class U>
    1.23 +struct dependent
    1.24 +{
    1.25 +    typedef T type;
    1.26 +};
    1.27 +
    1.28 +}}} // namespace boost::python::detail
    1.29 +
    1.30 +#endif // DEPENDENT_DWA200286_HPP