Skip to content

Commit efc405a

Browse files
committed
Documentation: suggest MAKE_OPAQUE be in a common header
1 parent 57a7dc9 commit efc405a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/advanced/cast/stl.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ the declaration
150150
before any binding code (e.g. invocations to ``class_::def()``, etc.). This
151151
macro must be specified at the top level (and outside of any namespaces), since
152152
it instantiates a partial template overload. If your binding code consists of
153-
multiple compilation units, it must be present in every file preceding any
154-
usage of ``std::vector<int>``. Opaque types must also have a corresponding
155-
``class_`` declaration to associate them with a name in Python, and to define a
156-
set of available operations, e.g.:
153+
multiple compilation units, it must be present in every file (or in a common
154+
header) preceding any usage of ``std::vector<int>``. Opaque types must also
155+
have a corresponding ``class_`` declaration to associate them with a name in
156+
Python, and to define a set of available operations, e.g.:
157157

158158
.. code-block:: cpp
159159

0 commit comments

Comments
 (0)