|
||||
File indexing completed on 2025-01-18 09:50:38
0001 // Copyright David Abrahams 2002. 0002 // Distributed under the Boost Software License, Version 1.0. (See 0003 // accompanying file LICENSE_1_0.txt or copy at 0004 // http://www.boost.org/LICENSE_1_0.txt) 0005 #ifndef DEPENDENT_DWA200286_HPP 0006 # define DEPENDENT_DWA200286_HPP 0007 0008 namespace boost { namespace python { namespace detail { 0009 0010 // A way to turn a concrete type T into a type dependent on U. This 0011 // keeps conforming compilers (those implementing proper 2-phase 0012 // name lookup for templates) from complaining about incomplete 0013 // types in situations where it would otherwise be inconvenient or 0014 // impossible to re-order code so that all types are defined in time. 0015 0016 // One such use is when we must return an incomplete T from a member 0017 // function template (which must be defined in the class body to 0018 // keep MSVC happy). 0019 template <class T, class U> 0020 struct dependent 0021 { 0022 typedef T type; 0023 }; 0024 0025 }}} // namespace boost::python::detail 0026 0027 #endif // DEPENDENT_DWA200286_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |