update boost on linux
This commit is contained in:
@@ -339,6 +339,7 @@ struct arg_list : Next
|
||||
template <class Default>
|
||||
reference operator[](lazy_default<key_type, Default>) const
|
||||
{
|
||||
BOOST_MPL_ASSERT_NOT((holds_maybe));
|
||||
return arg.value;
|
||||
}
|
||||
|
||||
|
||||
0
linx64/include/boost/parameter/aux_/python/invoker.hpp
Normal file → Executable file
0
linx64/include/boost/parameter/aux_/python/invoker.hpp
Normal file → Executable file
0
linx64/include/boost/parameter/aux_/python/invoker_iterate.hpp
Normal file → Executable file
0
linx64/include/boost/parameter/aux_/python/invoker_iterate.hpp
Normal file → Executable file
11
linx64/include/boost/parameter/python.hpp
Normal file → Executable file
11
linx64/include/boost/parameter/python.hpp
Normal file → Executable file
@@ -41,8 +41,7 @@ namespace boost { namespace parameter { namespace python { namespace aux
|
||||
inline PyObject* unspecified_type()
|
||||
{
|
||||
static PyTypeObject unspecified = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /* ob_size */
|
||||
PyVarObject_HEAD_INIT(NULL,0)
|
||||
"Boost.Parameter.Unspecified", /* tp_name */
|
||||
PyType_Type.tp_basicsize, /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
@@ -64,13 +63,13 @@ namespace boost { namespace parameter { namespace python { namespace aux
|
||||
Py_TPFLAGS_DEFAULT, /* tp_flags */
|
||||
0, /* tp_doc */
|
||||
};
|
||||
|
||||
if (unspecified.ob_type == 0)
|
||||
|
||||
if (Py_TYPE(&unspecified) == 0)
|
||||
{
|
||||
unspecified.ob_type = &PyType_Type;
|
||||
Py_TYPE(&unspecified) = &PyType_Type;
|
||||
PyType_Ready(&unspecified);
|
||||
}
|
||||
|
||||
|
||||
return (PyObject*)&unspecified;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user