Skip to content

Commit c679bf0

Browse files
committed
doc improvements
1 parent 115f12d commit c679bf0

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

doc/custom_rtti.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,15 @@ CRTP template:
116116
include::{examplesdir}/custom_rtti.cpp[tag=policy]
117117
----
118118
119-
Now we can include the "core" header and write the example:
119+
Next, we include the main header. Because `BOOST_OPENMETHOD_DEFAULT_POLICY` is
120+
defined, its value is used for the default policy. Then comes the usual example.
120121
121122
[source,c++]
122123
----
123124
include::{examplesdir}/custom_rtti.cpp[tag=example]
124125
----
125126
126-
This programs compiles even if standard RTTI is disabled.
127+
This programs works even if standard RTTI is disabled.
127128
128129
## Deferred RTTI
129130

doc/initialize.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ Initializes dispatch data for the methods registered in `Policy`. This function
2020
must be called before any calls to those methods, and after loading or unloading
2121
a dynamic library that adds classes, methods or overriders to `Policy`.
2222

23+
The return value is an object that contains a member variable, `report`, that
24+
contains the following information:
25+
26+
* `std::size_t cells`: the number of cells used by the v-tables and the multiple
27+
dispatch tables.
28+
29+
* `std::size_t not_implemented`: the number of methods that don't have an
30+
overrider for at least one combination of virtual arguments.
31+
32+
* `std::size_t ambiguous`: the number of methods that have more than one
33+
overrider, none of which is more specific than the others, for at least one
34+
combination of virtual arguments.
35+
2336
## finalize
2437

2538
### Synopsis

0 commit comments

Comments
 (0)