1. Oct 20, 2016
  2. Oct 17, 2016
    • Wenzel Jakob's avatar
      Merge pull request #450 from dean0x7d/explicit-bool · 35995856
      Wenzel Jakob authored
      Make operator bool() explicit
      35995856
    • Dean Moldovan's avatar
      Make operator bool() explicit · c889ebd0
      Dean Moldovan authored
      This prevents unwanted conversions to bool or int such as:
      ```
      py::object my_object;
      
      std::cout << my_object << std::endl; // compiles and prints 0 or 1
      int n = my_object; // compiles and is nonsense
      ```
      
      With `explicit operator bool()` the above cases become compiler errors.
      c889ebd0
    • Wenzel Jakob's avatar
      Merge pull request #449 from jagerman/no-implicit-conversions · 135fd149
      Wenzel Jakob authored
      Disable most implicit conversion constructors
      135fd149
    • Jason Rhinelander's avatar
      Disable most implicit conversion constructors · 12d76600
      Jason Rhinelander authored
      We have various classes that have non-explicit constructors that accept
      a single argument, which is implicitly making them implicitly
      convertible from the argument.  In a few cases, this is desirable (e.g.
      implicit conversion of std::string to py::str, or conversion of double
      to py::float_); in many others, however, it is unintended (e.g. implicit
      conversion of size_t to some pre-declared py::array_t<T> type).
      
      This disables most of the unwanted implicit conversions by marking them
      `explicit`, and comments the ones that are deliberately left implicit.
      12d76600
  3. Oct 16, 2016
  4. Oct 15, 2016
  5. Oct 14, 2016
  6. Oct 13, 2016
  7. Oct 12, 2016
  8. Oct 10, 2016
  9. Oct 09, 2016
  10. Oct 08, 2016
    • Wenzel Jakob's avatar
      unpacking_collector: allow nullptr-valued kwargs argument · e71ab8f4
      Wenzel Jakob authored
      This fixes an issue that can arise when forwarding (*args, **kwargs)
      captured from a pybind11-bound function call to another Python function.
      When the initial function call includes no keyword arguments, the
      py::kwargs field is set to nullptr and causes a crash later on.
      e71ab8f4
  11. Oct 07, 2016
  12. Oct 03, 2016
  13. Sep 30, 2016
  14. Sep 29, 2016
  15. Sep 28, 2016