1. 31 Dec, 2019 1 commit
  2. 30 Dec, 2019 1 commit
    • Use C++17 fold expressions when casting tuples and argument lists (#2043) · f9f3bd71
      This commit introduces the use of C++17-style fold expressions when
      casting tuples & the argument lists of functions.
      
      This change can improve performance of the resulting bindings: because
      fold expressions have short-circuiting semantics, pybind11 e.g. won't
      try to cast the second argument of a function if the first one failed.
      This is particularly effective when working with functions that have
      many overloads with long argument lists.
      Wenzel Jakob committed
  3. 19 Dec, 2019 2 commits
  4. 13 Dec, 2019 1 commit
  5. 12 Dec, 2019 1 commit
  6. 11 Dec, 2019 4 commits
  7. 28 Nov, 2019 3 commits
  8. 25 Nov, 2019 2 commits
  9. 24 Nov, 2019 1 commit
  10. 16 Nov, 2019 1 commit
  11. 14 Nov, 2019 4 commits
  12. 31 Oct, 2019 2 commits
  13. 23 Oct, 2019 1 commit
  14. 22 Oct, 2019 2 commits
  15. 18 Oct, 2019 1 commit
  16. 17 Oct, 2019 1 commit
    • Fix build with -Wmissing-prototypes (#1954) · de5a29c0
      When building with `-Werror,-Wmissing-prototypes`, `clang` complains about missing prototypes for functions defined through macro expansions. This PR adds the missing prototypes.
      
      ```
      error: no previous prototype for function 'pybind11_init_impl_embedded' [
      -Werror,-Wmissing-prototypes]                                           
      PYBIND11_EMBEDDED_MODULE(embedded, mod) {                                             
      ^                                                                           
      external/pybind11/include/pybind11/embed.h:61:5: note: expanded from macro 'PYBIND11_EMBEDDED_MODULE'
          PYBIND11_EMBEDDED_MODULE_IMPL(name)                                       \
          ^                                                                         
      external/pybind11/include/pybind11/embed.h:26:23: note: expanded from macro 'PYBIND11_EMBEDDED_MODULE_IMPL'
            extern "C" void pybind11_init_impl_##name() {      \                  
                            ^                                             
      <scratch space>:380:1: note: expanded from here                     
      pybind11_init_impl_embedded                                                                                                                      
      ^                                                                                                                                                
      1 error generated.
      ```
      nicolov committed
  17. 14 Oct, 2019 2 commits
  18. 08 Oct, 2019 1 commit
  19. 06 Oct, 2019 1 commit
  20. 21 Sep, 2019 5 commits
  21. 20 Sep, 2019 3 commits