1. 18 Jun, 2020 1 commit
  2. 15 Jun, 2020 1 commit
  3. 10 Jun, 2020 9 commits
  4. 08 Jun, 2020 1 commit
  5. 04 Jun, 2020 2 commits
  6. 31 May, 2020 5 commits
  7. 26 Apr, 2020 15 commits
  8. 14 Apr, 2020 2 commits
    • Ralf W. Grosse-Kunstleve's avatar
      Adding a default virtual destructor to Animal type in test_tagbased_polymorphic.cpp. · f6e543b1
      Ralf W. Grosse-Kunstleve authored
      With this change, and cast.h as-is in master, test_tagbased_polymorphic.cpp fails to compile with the error message below.
      With the cast.h change in pull/2016, building and testing succeeds.
      
      cd pybind11/build/tests && /usr/bin/c++  -DPYBIND11_TEST_BOOST -DPYBIND11_TEST_EIGEN -Dpybind11_tests_EXPORTS -Ipybind11/include -I/usr/include/python3.7m -isystem /usr/include/eigen3  -Os -DNDEBUG -fPIC -fvisibility=hidden   -std=c++2a -flto -fno-fat-lto-objects -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated -o CMakeFiles/pybind11_tests.dir/test_tagbased_polymorphic.cpp.o -c pybind11/tests/test_tagbased_polymorphic.cpp
      In file included from pybind11/include/pybind11/attr.h:13,
                       from pybind11/include/pybind11/pybind11.h:44,
                       from pybind11/tests/pybind11_tests.h:2,
                       from pybind11/tests/test_tagbased_polymorphic.cpp:10:
      pybind11/include/pybind11/cast.h: In instantiation of ‘static ...
      f6e543b1
    • Ralf W. Grosse-Kunstleve's avatar
      Allows users to specialize polymorphic_type_hook with std::enable_if. · 4697149d
      Ralf W. Grosse-Kunstleve authored
      Currently user specializations of the form
      
      template <typename itype> struct polymorphic_type_hook<itype, std::enable_if_t<...>> { ... };
      
      will fail if itype is also polymorphic, because the existing specialization will also
      be enabled, which leads to 2 equally viable candidates. With this change, user provided
      specializations have higher priority than the built in specialization for polymorphic types.
      4697149d
  9. 31 Mar, 2020 2 commits
  10. 04 Mar, 2020 1 commit
  11. 22 Jan, 2020 1 commit