Cannot compile pybind11 with nvcc and clang

I failed to use nvcc and clang to compile the pybind11 but succeeded with nvcc and g++.
The code is

#include <pybind11/pybind11.h>
int main(){}

When I compile it with nvcc 10.1 and clang 6/7, I get the following error:

/tmp/pybind11/include/pybind11/cast.h:939:73: error: use 'template' keyword to treat 'type_caster' as a dependent template name
operator std::reference_wrapper< type> () { return ((subcaster).detail::type_caster< intrinsic_t< type> > ::operator subcaster_cast_...
                                                                        ^
                                                                        template

The compiling command is

nvcc --std=c++11 -ccbin=/usr/bin/clang++ t.cu -I /pathto/pybind11/include -I /pathto/anaconda3/include/python3.7m

I have reported this to engineering team.
Will keep you updated once I have available information.

Hello,

I am also seeing this error when attempting to compile a simple static library target with CUDA 9 and pybind11 v2.2.4. This is on a Tegra TX2 running Ubuntu 16.04 with GCC 5. The error also occurs when I use GCC 6.

Code:

#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>

pybind11::array_t<uint8_t> MakeArray() {
    pybind11::array_t<uint8_t> myArray;
    myArray.resize({3, 4});
    return myArray;
}

The compile command is:

nvcc -O3 -arch=sm_62 -std=c++11 -fmad=true -m64 -ccbin /usr/bin/cc -Ipybind11/include -I/usr/include/python2.7 -dlink test_compile.cu -o test_compile.o -Xcompiler -fPIC

I get huge number of template errors:

[code]
pybind11/include/pybind11/cast.h(1186): warning: statement is unreachable
detected during:
instantiation of “__nv_bool pybind11::detail::string_caster<StringType, IsView>::load(pybind11::handle, __nv_bool) [with StringType=std::__cxx11::basic_string<char, std::char_traits, std::allocator>, IsView=false]”
(1636): here
instantiation of “pybind11::detail::type_caster<T, SFINAE> &pybind11::detail::load_type(pybind11::detail::type_caster<T, SFINAE> &, const pybind11::handle &) [with T=std::__cxx11::basic_string<char, std::char_traits, std::allocator>, SFINAE=void]”
(1649): here
instantiation of “pybind11::detail::make_caster pybind11::detail::load_type(const pybind11::handle &) [with T=std::__cxx11::string]”
(1661): here
instantiation of “T pybind11::cast<T,>(const pybind11::handle &) [with T=std::__cxx11::string, =0]”
(1716): here
instantiation of “T pybind11::object::cast() const & [with T=std::__cxx11::string]”
pybind11/include/pybind11/pytypes.h(505): here
instantiation of “T pybind11::detail::accessor::cast() const [with Policy=pybind11::detail::accessor_policies::str_attr, T=std::__cxx11::string]”
(416): here

pybind11/include/pybind11/pytypes.h:1205:206: error: expansion pattern ‘pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …, true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …> > >::value’ contains no argument packs
pybind11/include/pybind11/pytypes.h:1205:215: error: template argument 1 is invalid
pybind11/include/pybind11/pytypes.h:1205:392: error: expansion pattern ‘pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …, true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …> > >::value’ contains no argument packs
pybind11/include/pybind11/pytypes.h:1205:395: error: template argument 2 is invalid
pybind11/include/pybind11/pytypes.h:1205:397: error: template argument 1 is invalid
pybind11/include/pybind11/pytypes.h:1205:397: error: template argument 2 is invalid
pybind11/include/pybind11/pytypes.h:1205:412: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:776:149: error: expansion pattern ‘std::is_copy_constructible<_Tp>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:776:240: error: expansion pattern ‘std::is_same<typename Container::value_type&, typename Container::reference>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:776:249: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:776:249: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:776:312: error: expansion pattern ‘std::is_copy_constructible<_Tp>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:776:403: error: expansion pattern ‘std::is_same<typename Container::value_type&, typename Container::reference>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:776:406: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:776:406: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:776:408: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:776:408: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:776:423: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:776:425: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:970:126: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, char> >’ contains no argument packs
pybind11/include/pybind11/cast.h:970:170: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, char16_t> >’ contains no argument packs
pybind11/include/pybind11/cast.h:970:214: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, char32_t> >’ contains no argument packs
pybind11/include/pybind11/cast.h:970:257: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, wchar_t> >’ contains no argument packs
pybind11/include/pybind11/cast.h:970:260: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:970:260: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:970:260: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:970:260: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:970:262: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1260:147: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, char> >’ contains no argument packs
pybind11/include/pybind11/cast.h:1260:195: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, char16_t> >’ contains no argument packs
pybind11/include/pybind11/cast.h:1260:243: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, char32_t> >’ contains no argument packs
pybind11/include/pybind11/cast.h:1260:290: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, wchar_t> >’ contains no argument packs
pybind11/include/pybind11/cast.h:1260:293: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1260:293: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1260:293: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1260:293: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1260:295: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1260:310: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1260:312: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1271:121: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, char> >’ contains no argument packs
pybind11/include/pybind11/cast.h:1271:169: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, char16_t> >’ contains no argument packs
pybind11/include/pybind11/cast.h:1271:217: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, char32_t> >’ contains no argument packs
pybind11/include/pybind11/cast.h:1271:264: error: expansion pattern ‘pybind11::detail::negation<std::is_same<CharT, wchar_t> >’ contains no argument packs
pybind11/include/pybind11/cast.h:1271:267: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1271:267: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1271:267: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1271:267: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1271:269: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1271:284: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1271:286: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1593:112: error: expansion pattern ‘std::is_void<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:137: error: expansion pattern ‘std::is_pointer<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:164: error: expansion pattern ‘std::is_reference<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:187: error: expansion pattern ‘std::is_const<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:190: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1593:190: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1593:190: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1593:190: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1593:192: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1593:201: error: expected parameter pack before ‘…’
pybind11/include/pybind11/cast.h:1593:251: error: expansion pattern ‘pybind11::detail::negation<pybind11::detail::is_copy_constructible >::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:294: error: expansion pattern ‘std::is_move_constructible<_Tp>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:392: error: expansion pattern ‘std::is_same<decltype (declval<pybind11::detail::type_caster<typename pybind11::detail::intrinsic_type::type, void> >().operator T&()), T&>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:401: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1593:401: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1593:401: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1593:401: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1593:453: error: expansion pattern ‘std::is_void<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:478: error: expansion pattern ‘std::is_pointer<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:505: error: expansion pattern ‘std::is_reference<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:528: error: expansion pattern ‘std::is_const<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:531: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1593:531: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1593:531: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1593:531: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1593:533: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1593:542: error: expected parameter pack before ‘…’
pybind11/include/pybind11/cast.h:1593:592: error: expansion pattern ‘pybind11::detail::negation<pybind11::detail::is_copy_constructible >::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:635: error: expansion pattern ‘std::is_move_constructible<_Tp>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:733: error: expansion pattern ‘std::is_same<decltype (declval<pybind11::detail::type_caster<typename pybind11::detail::intrinsic_type::type, void> >().operator T&()), T&>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1593:736: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1593:736: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1593:736: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1593:736: error: template argument 5 is invalid
pybind11/include/pybind11/cast.h:1593:738: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1593:738: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1593:753: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1593:755: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1600:121: error: expansion pattern ‘std::is_void<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:146: error: expansion pattern ‘std::is_pointer<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:173: error: expansion pattern ‘std::is_reference<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:196: error: expansion pattern ‘std::is_const<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:199: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1600:199: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1600:199: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1600:199: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1600:201: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1600:210: error: expected parameter pack before ‘…’
pybind11/include/pybind11/cast.h:1600:250: error: expansion pattern ‘pybind11::detail::negation<pybind11::detail::move_always >::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:293: error: expansion pattern ‘std::is_move_constructible<_Tp>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:391: error: expansion pattern ‘std::is_same<decltype (declval<pybind11::detail::type_caster<typename pybind11::detail::intrinsic_type::type, void> >().operator T&()), T&>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:400: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1600:400: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1600:400: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1600:400: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1600:452: error: expansion pattern ‘std::is_void<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:477: error: expansion pattern ‘std::is_pointer<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:504: error: expansion pattern ‘std::is_reference<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:527: error: expansion pattern ‘std::is_const<_Tp>’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:530: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1600:530: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1600:530: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1600:530: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1600:532: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1600:541: error: expected parameter pack before ‘…’
pybind11/include/pybind11/cast.h:1600:581: error: expansion pattern ‘pybind11::detail::negation<pybind11::detail::move_always >::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:624: error: expansion pattern ‘std::is_move_constructible<_Tp>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:722: error: expansion pattern ‘std::is_same<decltype (declval<pybind11::detail::type_caster<typename pybind11::detail::intrinsic_type::type, void> >().operator T&()), T&>::value’ contains no argument packs
pybind11/include/pybind11/cast.h:1600:725: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1600:725: error: template argument 3 is invalid
pybind11/include/pybind11/cast.h:1600:725: error: template argument 4 is invalid
pybind11/include/pybind11/cast.h:1600:725: error: template argument 5 is invalid
pybind11/include/pybind11/cast.h:1600:727: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1600:727: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1600:742: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1600:744: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1682:100: error: expansion pattern ‘pybind11::detail::move_always’ contains no argument packs
pybind11/include/pybind11/cast.h:1682:138: error: expansion pattern ‘pybind11::detail::move_if_unreferenced’ contains no argument packs
pybind11/include/pybind11/cast.h:1682:141: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1682:141: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1682:143: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1682:155: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1712:99: error: expansion pattern ‘pybind11::detail::move_always’ contains no argument packs
pybind11/include/pybind11/cast.h:1712:137: error: expansion pattern ‘pybind11::detail::move_if_unreferenced’ contains no argument packs
pybind11/include/pybind11/cast.h:1712:140: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1712:140: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:1712:142: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:1712:154: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:2086:145: error: expansion pattern ‘pybind11::detail::negation<pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::args_proxy, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …, true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::args_proxy, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …> > > >::value’ contains no argument packs
pybind11/include/pybind11/cast.h:2086:154: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:2086:278: error: expansion pattern ‘pybind11::detail::negation<pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::args_proxy, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …, true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::args_proxy, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …> > > >::value’ contains no argument packs
pybind11/include/pybind11/cast.h:2086:281: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:2086:283: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:2086:283: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:2086:298: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:2093:146: error: expansion pattern ‘pybind11::detail::negation<pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::args_proxy, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …, true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::args_proxy, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …> > > >::value’ contains no argument packs
pybind11/include/pybind11/cast.h:2093:155: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:2093:279: error: expansion pattern ‘pybind11::detail::negation<pybind11::detail::negation<std::is_same<pybind11::detail::bools<pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::args_proxy, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …, true>, pybind11::detail::bools<true, pybind11::detail::negation<std::is_base_of<pybind11::arg, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::args_proxy, Args> >::value …, pybind11::detail::negation<std::is_same<pybind11::detail::kwargs_proxy, Args> >::value …> > > >::value’ contains no argument packs
pybind11/include/pybind11/cast.h:2093:282: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:2093:284: error: template argument 1 is invalid
pybind11/include/pybind11/cast.h:2093:284: error: template argument 2 is invalid
pybind11/include/pybind11/cast.h:2093:299: error: template argument 1 is invalid
pybind11/include/pybind11/pybind11.h:65:113: error: expansion pattern ‘std::is_function<typename std::remove_reference<_From>::type>’ contains no argument packs
pybind11/include/pybind11/pybind11.h:65:171: error: expansion pattern ‘std::is_pointer<typename std::remove_reference< >::type>’ contains no argument packs
pybind11/include/pybind11/pybind11.h:65:236: error: expansion pattern ‘std::is_member_pointer<typename std::remove_reference< >::type>’ contains no argument packs
pybind11/include/pybind11/pybind11.h:65:239: error: template argument 1 is invalid
pybind11/include/pybind11/pybind11.h:65:239: error: template argument 2 is invalid
pybind11/include/pybind11/pybind11.h:65:239: error: template argument 3 is invalid
pybind11/include/pybind11/pybind11.h:65:241: error: template argument 1 is invalid
pybind11/include/pybind11/pybind11.h:65:256: error: template argument 1 is invalid
pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::detail::enum_base::init(bool, bool)’:
pybind11/include/pybind11/pybind11.h:1404:26: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>, pybind11::is_method)’
}, is_method(m_base)
^
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1404:26: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}, is_method(m_base)
^
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1404:26: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}, is_method(m_base)
^
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return ()(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1404:26: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}, is_method(m_base)
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:1415:26: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>, pybind11::is_method)’
}, is_method(m_base)
^
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1415:26: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}, is_method(m_base)
^
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1415:26: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}, is_method(m_base)
^
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return (
)(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1415:26: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}, is_method(m_base)
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:1433:3: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>)’
}
^
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1433:3: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}
^
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1433:3: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}
^
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return ()(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1433:3: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: no known conversion for argument 1 from ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’ to ‘std::nullptr_t’
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 1 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: no known conversion for argument 1 from ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’ to ‘const pybind11::cpp_function&’
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: no known conversion for argument 1 from ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’ to ‘pybind11::cpp_function&&’
pybind11/include/pybind11/pybind11.h:1442:3: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>)’
}), none(), none(), “”
^
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1442:3: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}), none(), none(), “”
^
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1442:3: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}), none(), none(), “”
^
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return (
)(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1442:3: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’
}), none(), none(), “”
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: no known conversion for argument 1 from ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’ to ‘std::nullptr_t’
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 1 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: no known conversion for argument 1 from ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’ to ‘const pybind11::cpp_function&’
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: no known conversion for argument 1 from ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::handle)>’ to ‘pybind11::cpp_function&&’
pybind11/include/pybind11/pybind11.h:1463:151: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>, pybind11::is_method)’
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1463:151: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1463:151: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return ()(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1463:151: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:1464:151: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>, pybind11::is_method)’
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1464:151: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1464:151: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return (
)(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1464:151: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:1467:130: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>, pybind11::is_method)’
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1467:130: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1467:130: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return ()(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1467:130: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:1468:130: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>, pybind11::is_method)’
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1468:130: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1468:130: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return (
)(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1468:130: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:1469:131: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>, pybind11::is_method)’
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1469:131: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1469:131: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return ()(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1469:131: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:1470:131: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>, pybind11::is_method)’
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1470:131: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1470:131: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return (
)(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1470:131: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:1471:131: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>, pybind11::is_method)’
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1471:131: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1471:131: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> pybind11::cpp_function::cpp_function(Return ()(Args …), const Extra& …)
cpp_function(Return (f)(Args…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:59:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1471:131: note: mismatched types ‘Return (
)(Args …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:55:1: note: candidate: pybind11::cpp_function::cpp_function(std::nullptr_t)
cpp_function(std::nullptr_t) { }
^
pybind11/include/pybind11/pybind11.h:55:1: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:54:9: note: candidate: pybind11::cpp_function::cpp_function()
cpp_function() { }
^
pybind11/include/pybind11/pybind11.h:54:9: note: candidate expects 0 arguments, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(const pybind11::cpp_function&)
class cpp_function : public function {
^
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:52:7: note: candidate: pybind11::cpp_function::cpp_function(pybind11::cpp_function&&)
pybind11/include/pybind11/pybind11.h:52:7: note: candidate expects 1 argument, 2 provided
pybind11/include/pybind11/pybind11.h:1472:132: error: no matching function for call to ‘pybind11::cpp_function::cpp_function(pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>, pybind11::is_method)’
pybind11/include/pybind11/pybind11.h:80:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::
)(Arg …) const, const Extra& …)
cpp_function(Return (Class::f)(Arg…) const, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:80:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1472:132: note: mismatched types ‘Return (Class::
)(Arg …) const’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:73:1: note: candidate: template<class Return, class Class, class … Arg, class … Extra> pybind11::cpp_function::cpp_function(Return (Class::*)(Arg …), const Extra& …)
cpp_function(Return (Class::f)(Arg…), const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:73:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:1472:132: note: mismatched types ‘Return (Class::
)(Arg …)’ and ‘pybind11::detail::enum_base::init(bool, bool)::<lambda(pybind11::object, pybind11::object)>’
pybind11/include/pybind11/pybind11.h:66:1: note: candidate: template<class Func, class … Extra, class> pybind11::cpp_function::cpp_function(Func&&, const Extra& …)
cpp_function(Func &&f, const Extra&… extra) {
^
pybind11/include/pybind11/pybind11.h:66:1: note: template argument deduction/substitution failed:
pybind11/include/pybind11/pybind11.h:59:1: note: candidate: template<class Return, class … Args, class … Extra> p