[pygccxml-commit] SF.net SVN: pygccxml:[1643] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2009-01-30 20:34:47
|
Revision: 1643 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1643&view=rev Author: roman_yakovenko Date: 2009-01-30 20:34:42 +0000 (Fri, 30 Jan 2009) Log Message: ----------- add extract_return_type to indexing suite v2 - patch from Maik Beckmann Modified Paths: -------------- pyplusplus_dev/indexing_suite_v2/indexing_suite/slice_handler.hpp pyplusplus_dev/pyplusplus/code_repository/indexing_suite/slice_handler_header.py Modified: pyplusplus_dev/indexing_suite_v2/indexing_suite/slice_handler.hpp =================================================================== --- pyplusplus_dev/indexing_suite_v2/indexing_suite/slice_handler.hpp 2009-01-30 20:03:31 UTC (rev 1642) +++ pyplusplus_dev/indexing_suite_v2/indexing_suite/slice_handler.hpp 2009-01-30 20:34:42 UTC (rev 1643) @@ -12,7 +12,8 @@ // ======= // 2003/ 9/ 9 rmg File creation // 2008/12/08 Roman Change indexing suite layout -// +// 2009/01/30 Roman patch from Maik Beckmann was applied - fixes error: +// // error: no class template named 'extract_return_type' // $Id: slice_handler.hpp,v 1.1.2.10 2003/11/24 16:35:52 raoulgough Exp $ // @@ -64,6 +65,9 @@ typedef boost::python::default_result_converter result_converter; typedef typename Policy::argument_package argument_package; + template<class Sig> struct extract_return_type : + Policy::template extract_return_type<Sig> { }; + postcall_override (Policy const &p); bool precall (PyObject *args); Modified: pyplusplus_dev/pyplusplus/code_repository/indexing_suite/slice_handler_header.py =================================================================== --- pyplusplus_dev/pyplusplus/code_repository/indexing_suite/slice_handler_header.py 2009-01-30 20:03:31 UTC (rev 1642) +++ pyplusplus_dev/pyplusplus/code_repository/indexing_suite/slice_handler_header.py 2009-01-30 20:34:42 UTC (rev 1643) @@ -1,14 +1,14 @@ -# Copyright 2004-2008 Roman Yakovenko. -# Distributed under the Boost Software License, Version 1.0. (See -# accompanying file LICENSE_1_0.txt or copy at -# http://www.boost.org/LICENSE_1_0.txt) - -""" -This file contains indexing suite v2 code -""" - -file_name = "indexing_suite/slice_handler.hpp" - +# Copyright 2004-2008 Roman Yakovenko. +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +""" +This file contains indexing suite v2 code +""" + +file_name = "indexing_suite/slice_handler.hpp" + code = """// -*- mode:c++ -*- // // Header file slice_handler.hpp @@ -23,7 +23,8 @@ // ======= // 2003/ 9/ 9 rmg File creation // 2008/12/08 Roman Change indexing suite layout -// +// 2009/01/30 Roman patch from Maik Beckmann was applied - fixes error: +// // error: no class template named 'extract_return_type' // $Id: slice_handler.hpp,v 1.1.2.10 2003/11/24 16:35:52 raoulgough Exp $ // @@ -75,6 +76,9 @@ typedef boost::python::default_result_converter result_converter; typedef typename Policy::argument_package argument_package; + template<class Sig> struct extract_return_type : + Policy::template extract_return_type<Sig> { }; + postcall_override (Policy const &p); bool precall (PyObject *args); @@ -307,6 +311,6 @@ } } } #endif // BOOST_PYTHON_INDEXING_SLICE_HANDLER_HPP - - -""" + + +""" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |