pybind11/docs/advanced
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
..
cast Improve macro type handling for types with commas 2018-03-10 14:24:23 -04:00
pycpp correct stride in matrix example and test 2017-09-21 18:07:48 -03:00
classes.rst Remove deprecated placement-new constructor from docs 2017-09-07 15:02:16 +02:00
embedding.rst Added function for reloading module (#1040) 2017-09-12 08:05:05 +02:00
exceptions.rst misc. typos 2018-01-11 16:39:50 -04:00
functions.rst Minor typo 2018-02-27 22:46:29 -04:00
misc.rst Improve macro type handling for types with commas 2018-03-10 14:24:23 -04:00
smart_ptrs.rst Replace PYBIND11_PLUGIN with PYBIND11_MODULE 2017-05-29 03:21:19 +02:00