pybind11/docs/advanced/cast
Jason Rhinelander e88656ab45 Improve macro type handling for types with commas
- PYBIND11_MAKE_OPAQUE now takes ... rather than a single argument and
  expands it with __VA_ARGS__; this lets templated, comma-containing
  types get through correctly.
- Adds a new macro PYBIND11_TYPE() that lets you pass the type into a
  macro as a single argument, such as:

      PYBIND11_OVERLOAD(PYBIND11_TYPE(R<1,2>), PYBIND11_TYPE(C<3,4>), func)

  Unfortunately this only works for one macro call: to forward the
  argument on to the next macro call (without the processor breaking it
  up again) requires also adding the PYBIND11_TYPE(...) to type macro
  arguments in the PYBIND11_OVERLOAD_... macro chain.
- updated the documentation with these two changes, and use them at a couple
  places in the test suite to test that they work.
2018-03-10 14:24:23 -04:00
..
chrono.rst Automate generation of reference docs with doxygen and breathe (#598) 2017-01-31 16:54:08 +01:00
custom.rst Document that type_caster requires default-constructible types 2017-08-28 14:58:11 +02:00
eigen.rst Trivial typos 2017-11-01 22:48:36 -03:00
functional.rst Replace PYBIND11_PLUGIN with PYBIND11_MODULE 2017-05-29 03:21:19 +02:00
index.rst RFC - Add documentation for strings and Unicode issues (#636) 2017-02-02 13:56:31 +01:00
overview.rst Support std::string_view when compiled under C++17 2017-06-24 03:24:56 -03:00
stl.rst Improve macro type handling for types with commas 2018-03-10 14:24:23 -04:00
strings.rst Fix invalid reference definition in string conversion docs 2017-06-25 17:35:44 +02:00