File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed
include/boost/python/converter Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,12 @@ struct implicit
2929 static void construct (PyObject* obj, rvalue_from_python_stage1_data* data)
3030 {
3131 void * storage = ((rvalue_from_python_storage<Target>*)data)->storage .bytes ;
32+
33+ arg_from_python<Source> get_source (obj);
34+ bool convertible = get_source.convertible ();
35+ BOOST_ASSERT (convertible);
3236
33- new (storage) Target (extract<Source>(obj) ());
37+ new (storage) Target (get_source ());
3438
3539 // record successful construction
3640 data->convertible = storage;
Original file line number Diff line number Diff line change 11[doc Pyste Documentation]
22
3- [/
4- Distributed under
5- the Boost Software License, Version 1.0. (See accompanying file
6- LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7- ]
3+ [/ Copyright 2003 Bruno da Silva de Oliveira and Joel de Guzman.
4+ Distributed under the Boost Software License, Version 1.0. (See
5+ accompanying file LICENSE_1_0.txt or copy at
6+ http://www.boost.org/LICENSE_1_0.txt) ]
87
98[def GCCXML [@http://www.gccxml.org GCCXML]]
109[def Boost.Python [@../../index.html Boost.Python]]
Original file line number Diff line number Diff line change 11/*=============================================================================
22 Copyright (c) 2003 Bruno da Silva de Oliveira
3- http://spirit.sourceforge.net/
43
54 Use, modification and distribution is subject to the Boost Software
65 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Original file line number Diff line number Diff line change 1- # Copyright (C) 2003 Rational Discovery LLC
2- # Software License, Version 1.0. (See accompanying
3- # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
1+ # Copyright (C) 2003 Rational Discovery LLC. Distributed under the Boost
2+ # Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
3+ # at http://www.boost.org/LICENSE_1_0.txt)
44
55print "running..."
66
You can’t perform that action at this time.
0 commit comments