"vscode:/vscode.git/clone" did not exist on "44678e5476db5b0d46a03bb4625c03a6ea7e49c8"
  1. 03 Oct, 2020 1 commit
  2. 08 Sep, 2020 1 commit
  3. 30 Jun, 2020 1 commit
    • Lin Hsu's avatar
      Typo · d031efe7
      Lin Hsu authored
      d031efe7
  4. 25 Nov, 2019 2 commits
  5. 10 Jun, 2019 1 commit
  6. 13 Nov, 2018 1 commit
  7. 11 Sep, 2018 1 commit
  8. 24 Apr, 2018 1 commit
  9. 10 Mar, 2018 1 commit
  10. 17 Nov, 2017 1 commit
  11. 16 Sep, 2017 1 commit
    • Dean Moldovan's avatar
      Use semi-constexpr signatures on MSVC · 56613945
      Dean Moldovan authored
      MSCV does not allow `&typeid(T)` in constexpr contexts, but the string
      part of the type signature can still be constexpr. In order to avoid
      `typeid` as long as possible, `descr` is modified to collect type
      information as template parameters instead of constexpr `typeid`.
      The actual `std::type_info` pointers are only collected in the end,
      as a `constexpr` (gcc/clang) or regular (MSVC) function call.
      
      Not only does it significantly reduce binary size on MSVC, gcc/clang
      benefit a little bit as well, since they can skip some intermediate
      `std::type_info*` arrays.
      56613945
  12. 14 Aug, 2017 1 commit
    • Jason Rhinelander's avatar
      Compile with hidden visibility always; set via cmake property rather than compiler flag · 97aa54fe
      Jason Rhinelander authored
      This updates the compilation to always apply hidden visibility to
      resolve the issues with default visibility causing problems under debug
      compilations.  Moreover using the cmake property makes it easier for a
      caller to override if absolutely needed for some reason.
      
      For `pybind11_add_module` we use cmake to set the property; for the
      targets, we append to compilation option to non-MSVC compilers.
      97aa54fe
  13. 29 May, 2017 1 commit
    • Dean Moldovan's avatar
      Replace PYBIND11_PLUGIN with PYBIND11_MODULE · 443ab594
      Dean Moldovan authored
      This commit also adds `doc()` to `object_api` as a shortcut for the
      `attr("__doc__")` accessor.
      
      The module macro changes from:
      ```c++
      PYBIND11_PLUGIN(example) {
          pybind11::module m("example", "pybind11 example plugin");
          m.def("add", [](int a, int b) { return a + b; });
          return m.ptr();
      }
      ```
      
      to:
      
      ```c++
      PYBIND11_MODULE(example, m) {
          m.doc() = "pybind11 example plugin";
          m.def("add", [](int a, int b) { return a + b; });
      }
      ```
      
      Using the old macro results in a deprecation warning. The warning
      actually points to the `pybind11_init` function (since attributes
      don't bind to macros), but the message should be quite clear:
      "PYBIND11_PLUGIN is deprecated, use PYBIND11_MODULE".
      443ab594
  14. 13 Dec, 2016 1 commit
  15. 16 Nov, 2016 1 commit
  16. 22 Oct, 2016 1 commit
  17. 21 Sep, 2016 1 commit
  18. 06 Sep, 2016 1 commit
  19. 05 Sep, 2016 1 commit
  20. 03 Jun, 2016 1 commit
  21. 17 May, 2016 1 commit
  22. 03 May, 2016 1 commit
  23. 28 Apr, 2016 1 commit
  24. 26 Apr, 2016 1 commit
  25. 18 Apr, 2016 1 commit
  26. 14 Apr, 2016 1 commit
  27. 11 Apr, 2016 1 commit
  28. 15 Mar, 2016 1 commit
  29. 09 Mar, 2016 2 commits