1. 09 Feb, 2021 15 commits
  2. 08 Feb, 2021 3 commits
  3. 01 Feb, 2021 1 commit
  4. 31 Jan, 2021 2 commits
  5. 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
  6. 29 Jan, 2021 1 commit
  7. 28 Jan, 2021 1 commit
  8. 27 Jan, 2021 6 commits
  9. 25 Jan, 2021 3 commits
  10. 24 Jan, 2021 1 commit
    • Force the builtin module key to be the correct type. (#2814) · 9ea39dc3
      * Force the builtin module key to be the correct type.
      
      Previously it was always going to be a std::string which converted into
      unicode. Python 2 appears to want module keys to be normal str types, so
      this was breaking code that expected plain string types in the
      builtins.keys() data structure
      
      * Add a simple unit test to ensure all built-in keys are str
      
      * Update the unit test so it will also run on pypy
      
      * Run pre-commit.
      
      Co-authored-by: Jesse Clemens <jesse.clemens@sony.com>
      crimsoncor committed
  11. 21 Jan, 2021 1 commit
  12. 20 Jan, 2021 3 commits
  13. 19 Jan, 2021 1 commit