Back to home page

EIC code displayed by LXR

 
 

    


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 VOID_RETURN_DWA200274_HPP
0006 # define VOID_RETURN_DWA200274_HPP
0007 
0008 # include <boost/config.hpp>
0009 
0010 namespace boost { namespace python { namespace detail { 
0011 
0012 struct void_return
0013 {
0014     void_return() {}
0015  private: 
0016     void operator=(void_return const&);
0017 };
0018 
0019 template <class T>
0020 struct returnable
0021 {
0022     typedef T type;
0023 };
0024 
0025 # ifdef BOOST_NO_VOID_RETURNS
0026 template <>
0027 struct returnable<void>
0028 {
0029     typedef void_return type;
0030 };
0031 
0032 #  ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
0033 template <> struct returnable<const void> : returnable<void> {};
0034 template <> struct returnable<volatile void> : returnable<void> {};
0035 template <> struct returnable<const volatile void> : returnable<void> {};
0036 #  endif
0037 
0038 # endif // BOOST_NO_VOID_RETURNS
0039 
0040 }}} // namespace boost::python::detail
0041 
0042 #endif // VOID_RETURN_DWA200274_HPP