1. 31 Oct, 2019 1 commit
    • test pair-copyability on C++17 upwards (#1886) · a83d69e7
      * test pair-copyability on C++17 upwards
      
      The stdlib falsely detects containers like M=std::map<T, U>
      as copyable, even when one of T and U is not copyable.
      Therefore we cannot rely on the stdlib dismissing std::pair<T, M>
      by itself, even on C++17.
      
      * fix is_copy_assignable
      
      bind_map used std::is_copy_assignable which suffers from the same problems
      as std::is_copy_constructible, therefore the same fix has been applied.
      
      * created tests for copyability
      Sebastian Gsänger committed
  2. 23 Oct, 2019 1 commit
  3. 22 Oct, 2019 2 commits
  4. 18 Oct, 2019 1 commit
  5. 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
  6. 14 Oct, 2019 2 commits
  7. 08 Oct, 2019 1 commit
  8. 06 Oct, 2019 1 commit
  9. 21 Sep, 2019 5 commits
  10. 20 Sep, 2019 5 commits
  11. 19 Sep, 2019 5 commits
  12. 04 Sep, 2019 1 commit
  13. 27 Aug, 2019 1 commit
  14. 23 Aug, 2019 1 commit
  15. 19 Aug, 2019 4 commits
  16. 16 Aug, 2019 3 commits
  17. 15 Aug, 2019 2 commits
  18. 13 Aug, 2019 2 commits
  19. 27 Jul, 2019 1 commit