1. 04 May, 2021 1 commit
    • Fix Unicode support for ostream redirects (#2982) · 0c93a0f3
      * Crash when printing Unicode to redirected cout
      Add failing tests
      
      * Fix Unicode crashes redirected cout
      
      * pythonbuf::utf8_remainder check end iterator
      
      * Remove trailing whitespace and formatting iostream
      
      * Avoid buffer overflow if ostream redirect races
      This doesn't solve the actual race, but at least it now has a much lower
      probability of reading past the end of the buffer even when data races
      do occur.
      Pieter P committed
  2. 22 Apr, 2021 1 commit
  3. 21 Apr, 2021 2 commits
  4. 19 Apr, 2021 1 commit
    • Fix compilation with gcc < 5 (#2956) · e08a5811
      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.
      mvoelkle-cern committed
  5. 15 Apr, 2021 1 commit
  6. 14 Apr, 2021 1 commit
    • fix: using -Werror-all for Intel (#2948) · 62976cfc
      * correcting Werror for Intel
      
      * adding ward for Intel
      
      * adding wards for intel
      
      * another ward for Intel
      
      * missed one intel ward
      
      * exact match for intel compiler
      
      * removing inline limits
      
      * disable warnings about inline limits
      
      * formatter suggestion
      
      * more indent
      
      * hopefully make formatter happy
      
      * addressed review
      
      * fix &&
      
      * Update tests/CMakeLists.txt
      
      Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
      
      Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
      Philipp Bucher committed
  7. 13 Apr, 2021 1 commit
  8. 10 Apr, 2021 1 commit
  9. 06 Apr, 2021 2 commits
  10. 03 Apr, 2021 1 commit
  11. 02 Apr, 2021 4 commits
  12. 09 Mar, 2021 1 commit
  13. 08 Mar, 2021 1 commit
  14. 05 Mar, 2021 1 commit
  15. 25 Feb, 2021 2 commits
  16. 23 Feb, 2021 3 commits
  17. 20 Feb, 2021 1 commit
  18. 17 Feb, 2021 1 commit
  19. 14 Feb, 2021 1 commit
    • Add pybind11::bytearray (#2799) · 417067ee
      * 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
      Vikram Pal committed
  20. 12 Feb, 2021 1 commit
  21. 09 Feb, 2021 1 commit
  22. 08 Feb, 2021 3 commits
  23. 01 Feb, 2021 1 commit
  24. 31 Jan, 2021 2 commits
  25. 30 Jan, 2021 2 commits
    • Adding holder_caster `typename SFINAE = void` hooks to help work around the… · 932769b0
      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.
      Ralf W. Grosse-Kunstleve committed
    • When determining if a shared_ptr already exists, use a test on the we… (#2819) · 23c3edcf
      * 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: Yannick Jadoul <yannick.jadoul@belgacom.net>
      Edward Lockhart committed
  26. 29 Jan, 2021 1 commit
  27. 28 Jan, 2021 1 commit
  28. 27 Jan, 2021 1 commit