1. Apr 22, 2021
  2. Apr 20, 2021
    • mvoelkle-cern's avatar
      Fix compilation with gcc < 5 (#2956) · e08a5811
      mvoelkle-cern authored
      When the user defines _GLIBCXX_USE_CXX11_ABI=0 to force the pre-c++11 ABI, numpy.h assumes that is_trivially_copyable is available.
      It is not necessarily the case. This patch uses clang's feature detection instead.
      The workaround is for certain libstdc++ versions, so the test should target these particular versions.
      e08a5811
  3. Apr 16, 2021
  4. Apr 15, 2021
  5. Apr 14, 2021
  6. Apr 10, 2021
  7. Apr 06, 2021
  8. Apr 03, 2021
  9. Apr 02, 2021
  10. Mar 10, 2021
  11. Mar 08, 2021
  12. Mar 06, 2021
  13. Feb 25, 2021
  14. Feb 23, 2021
  15. Feb 21, 2021
  16. Feb 18, 2021
  17. Feb 14, 2021
    • Vikram Pal's avatar
      Add pybind11::bytearray (#2799) · 417067ee
      Vikram Pal authored
      * Add initial implementation
      
      * Add few more methods
      
      * Add tests
      
      * Fix a typo
      
      * Use std::string constructor which takes size
      
      * Fix implicit sign conversion error
      
      * Add size method and test
      
      * Remove implicit conversion
      
      * Fix bytearray constructors and operator std::string()
      
      * Make implicit bytearray constructor explicit
      
      * Rerun tests
      
      * Add null check
      
      * Rerun tests
      
      * Rerun tests - 2
      
      * Remove NULL check
      417067ee
  18. Feb 13, 2021
  19. Feb 10, 2021
  20. Feb 09, 2021
  21. Feb 01, 2021
  22. Jan 31, 2021
    • Ralf W. Grosse-Kunstleve's avatar
      Adding holder_caster `typename SFINAE = void` hooks to help work around the... · 932769b0
      Ralf W. Grosse-Kunstleve authored
      Adding holder_caster `typename SFINAE = void` hooks to help work around the current lack of smart-pointer interoperability (#2833)
      
      * Adding move_only_holder_caster `typename SFINAE = void` to enable external specializations.
      
      * Adding SFINAE hook also to copyable_holder_caster, for uniformity, with comment to explain the purpose.
      932769b0
    • Edward Lockhart's avatar
      When determining if a shared_ptr already exists, use a test on the we… (#2819) · 23c3edcf
      Edward Lockhart authored
      
      
      * When determining if a shared_ptr already exists, use a test on the weak_ptr instead of a try/catch block.
      
      * When determining if a shared_ptr already exists, use a test on the weak_ptr instead of a try/catch block.
      
      * weak_from_this is only available in C++17 and later
      
      * Switch to use feature flag instead of C++ version flag.
      
      * Add Microsoft-specific check.
      
      * Avoid undefined preprocessor macro warning treated as error.
      
      * Simplify shared_from_this in init_holder
      
      * Include <version> in detail/common.h (~stolen~ borrowed from @bstaletic's #2816)
      
      * Move class_::get_shared_from_this to detail::try_get_shared_from_this
      
      * Simplify try_get_shared_from_this by using weak_ptr::lock()
      
      Co-authored-by: default avatarYannick Jadoul <yannick.jadoul@belgacom.net>
      23c3edcf
  23. Jan 30, 2021
  24. Jan 28, 2021
  25. Jan 27, 2021