Created
August 16, 2015 12:22
-
-
Save nevion/bb90bb9a9b0f7071dbf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clang-linux.compile.c++.without-pth ../../../bin.v2/libs/python/test/class.test/clang-linux-3.5.0/debug/class.o | |
class.cpp:31:25: error: use of undeclared identifier 'foo' | |
def("y_function", [&foo](int) -> int { return foo++; }); | |
^ | |
class.cpp:31:51: error: use of undeclared identifier 'foo'; did you mean 'for'? | |
def("y_function", [&foo](int) -> int { return foo++; }); | |
^ | |
In file included from class.cpp:5: | |
In file included from ../../../boost/python/def.hpp:11: | |
In file included from ../../../boost/python/make_function.hpp:11: | |
In file included from ../../../boost/python/args.hpp:25: | |
In file included from ../../../boost/python/object_core.hpp:14: | |
In file included from ../../../boost/python/call.hpp:15: | |
In file included from ../../../boost/python/converter/arg_to_python.hpp:19: | |
In file included from ../../../boost/python/object/function_handle.hpp:8: | |
In file included from ../../../boost/python/detail/caller.hpp:16: | |
In file included from ../../../boost/python/detail/invoke.hpp:63: | |
In file included from ../../../boost/preprocessor/iteration/detail/iter/forward1.hpp:57: | |
../../../boost/python/detail/invoke.hpp:75:15: error: no matching function for call to object of type '(lambda at class.cpp:31:23)' | |
return rc(f( BOOST_PP_ENUM_BINARY_PARAMS_Z(1, N, ac, () BOOST_PP_INTERCEPT) )); | |
^ | |
../../../boost/python/detail/caller.hpp:218:40: note: in instantiation of function template specialization 'boost::python::detail::invoke<boost::python::to_python_value<const int &>, (lambda at class.cpp:31:23), boost::python::arg_from_python<const (lambda at class.cpp:31:23) &>, boost::python::arg_from_python<int> >' requested here | |
PyObject* result = detail::invoke( | |
^ | |
../../../boost/python/object/py_function.hpp:38:16: note: in instantiation of member function 'boost::python::detail::caller_arity<2>::impl<(lambda at class.cpp:31:23), boost::python::default_call_policies, boost::mpl::vector3<int, const (lambda at class.cpp:31:23) &, int> >::operator()' requested here | |
return m_caller(args, kw); | |
^ | |
../../../boost/python/object/py_function.hpp:32:5: note: in instantiation of member function 'boost::python::objects::caller_py_function_impl<boost::python::detail::caller<(lambda at class.cpp:31:23), boost::python::default_call_policies, boost::mpl::vector3<int, const (lambda at class.cpp:31:23) &, int> > >::operator()' requested here | |
caller_py_function_impl(Caller const& caller) | |
^ | |
../../../boost/python/object/py_function.hpp:124:22: note: in instantiation of member function 'boost::python::objects::caller_py_function_impl<boost::python::detail::caller<(lambda at class.cpp:31:23), boost::python::default_call_policies, boost::mpl::vector3<int, const (lambda at class.cpp:31:23) &, int> > >::caller_py_function_impl' requested here | |
: m_impl(new caller_py_function_impl<Caller>(caller)) | |
^ | |
../../../boost/python/make_function.hpp:37:11: note: in instantiation of function template specialization 'boost::python::objects::py_function::py_function<boost::python::detail::caller<(lambda at class.cpp:31:23), boost::python::default_call_policies, boost::mpl::vector3<int, const (lambda at class.cpp:31:23) &, int> > >' requested here | |
detail::caller<F,CallPolicies,Sig>(f, p) | |
^ | |
../../../boost/python/make_function.hpp:103:20: note: in instantiation of function template specialization 'boost::python::detail::make_function_aux<(lambda at class.cpp:31:23), boost::python::default_call_policies, boost::mpl::vector3<int, const (lambda at class.cpp:31:23) &, int> >' requested here | |
return detail::make_function_aux( | |
^ | |
../../../boost/python/def.hpp:82:45: note: in instantiation of function template specialization 'boost::python::make_function<(lambda at class.cpp:31:23)>' requested here | |
object make_function1(T fn, ...) { return make_function(fn); } | |
^ | |
../../../boost/python/def.hpp:91:45: note: in instantiation of function template specialization 'boost::python::detail::make_function1<(lambda at class.cpp:31:23)>' requested here | |
detail::scope_setattr_doc(name, detail::make_function1(fn, &fn), 0); | |
^ | |
class.cpp:31:5: note: in instantiation of function template specialization 'boost::python::def<(lambda at class.cpp:31:23)>' requested here | |
def("y_function", [&foo](int) -> int { return foo++; }); | |
^ | |
class.cpp:31:23: note: candidate function not viable: requires 1 argument, but 2 were provided | |
def("y_function", [&foo](int) -> int { return foo++; }); | |
^ | |
class.cpp:31:23: note: conversion candidate of type 'auto (*)(int) -> int' | |
3 errors generated. | |
"clang++" -c -x c++ -std=c++11 -O0 -g -fno-inline -Wall -g -fPIC -m64 -std=c++11 -DBOOST_ALL_NO_LIB=1 -I"../../.." -I"/usr/include/python2.7" -o "../../../bin.v2/libs/python/test/class.test/clang-linux-3.5.0/debug/class.o" "class.cpp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment