1. 14 Sep, 2018 1 commit
  2. 11 Sep, 2018 8 commits
  3. 08 Sep, 2018 1 commit
  4. 29 Aug, 2018 4 commits
  5. 28 Aug, 2018 4 commits
  6. 19 Jul, 2018 1 commit
    • Jason Rhinelander's avatar
      Fix compatibility with catch v2 · f7bc18f5
      Jason Rhinelander authored
      Catch v2 changed the `run(...)` signature to take a `char *argv[]`,
      arguing partly that technically a `char *argv[]` type is the correct
      `main()` signature rather than `const char *argv[]`.
      
      Dropping the `const` here doesn't appear to cause any problems with
      catch v1 (tested against both the cmake-downloaded 1.9.3 and Debian's
      1.12.1 package) so we can follow suit.
      f7bc18f5
  7. 17 Jul, 2018 4 commits
    • Wenzel Jakob's avatar
      stl.h: propagate return value policies to type-specific casters (#1455) · cbd16a82
      Wenzel Jakob authored
      * stl.h: propagate return value policies to type-specific casters
      
      Return value policies for containers like those handled in in 'stl.h'
      are currently broken.
      
      The problem is that detail::return_value_policy_override<C>::policy()
      always returns 'move' when given a non-pointer/reference type, e.g.
      'std::vector<...>'.
      
      This is sensible behavior for custom types that are exposed via
      'py::class_<>', but it does not make sense for types that are handled by
      other type casters (STL containers, Eigen matrices, etc.).
      
      This commit changes the behavior so that
      detail::return_value_policy_override only becomes active when the type
      caster derives from type_caster_generic.
      
      Furthermore, the override logic is called recursively in STL type
      casters to enable key/value-specific behavior.
      cbd16a82
    • Yannick Jadoul's avatar
      Switching deprecated Thread Local Storage (TLS) usage in Python 3.7 to Thread... · b4719a60
      Yannick Jadoul authored
      Switching deprecated Thread Local Storage (TLS) usage in Python 3.7 to Thread Specific Storage (TSS) (#1454)
      
      * Switching deprecated Thread Local Storage (TLS) usage in Python 3.7 to Thread Specific Storage (TSS)
      
      * Changing Python version from 3.6 to 3.7 for Travis CI, to match brew's version of Python 3
      
      * Introducing PYBIND11_ macros to switch between TLS and TSS API
      b4719a60
    • Boris Dalstein's avatar
      Fix typo in doc: build-in -> built-in · b30734ee
      Boris Dalstein authored
      b30734ee
    • Dennis Luxen's avatar
      Untangle cast logic to not implicitly require castability (#1442) · 221fb1e1
      Dennis Luxen authored
      The current code requires implicitly that integral types are cast-able to floating point. In case of strongly-typed integrals (e.g. as explained at http://www.ilikebigbits.com/blog/2014/5/6/type-safe-identifiers-in-c) this is not always the case.
      
      This commit uses SFINAE to move the numeric conversions into separate `cast()` implementations to avoid the issue.
      221fb1e1
  8. 24 Jun, 2018 4 commits
  9. 21 Jun, 2018 2 commits
  10. 15 Jun, 2018 1 commit
    • Antony Lee's avatar
      Properly report exceptions thrown during module initialization. · 58e551cc
      Antony Lee authored
      If an exception is thrown during module initialization, the
      error_already_set destructor will try to call `get_internals()` *after*
      setting Python's error indicator, resulting in a `SystemError: ...
      returned with an error set`.
      
      Fix that by temporarily stashing away the error indicator in the
      destructor.
      58e551cc
  11. 24 May, 2018 1 commit
  12. 18 May, 2018 1 commit
  13. 07 May, 2018 1 commit
  14. 06 May, 2018 3 commits
  15. 29 Apr, 2018 2 commits
  16. 24 Apr, 2018 1 commit
  17. 22 Apr, 2018 1 commit
    • Wenzel Jakob's avatar
      Minor fix for MSVC warning CS4459 (#1374) · ed670055
      Wenzel Jakob authored
      When using pybind11 to bind enums on MSVC and warnings (/W4) enabled,
      the following warning pollutes builds. This fix renames one of the
      occurrences.
      
      pybind11\include\pybind11\pybind11.h(1398): warning C4459: declaration of 'self' hides global declaration
      pybind11\include\pybind11\operators.h(41): note: see declaration of 'pybind11::detail::self'
      ed670055