Skip to content

Commit 4ad4384

Browse files
committed
doc fixes
1 parent ea7dbe8 commit 4ad4384

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

doc/headers_namespaces.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
## Headers and Namespaces
33

44
Most real-life programs will be organized in multiple files and multiple
5-
namespaces. OpenMethod interacts with headers and namespaces very naturally,
6-
unless using-directives are avoided. In that case, there are a few things to be
7-
aware of.
5+
namespaces. OpenMethod interacts with headers and namespaces naturally, if
6+
using-directives are avoided. In that case, there are a few things to be aware
7+
of.
88

99
Let's break the Animals example into headers and namespaces. First we put
1010
`Animal` in its own header and namespace:

doc/hello_world.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,3 @@ reference, because `virtual_ptr` has a conversion constructor for that:
9696
----
9797
include::{examplesdir}/hello_world.cpp[tag=call]
9898
----
99-
100-
NOTE: `virtual_ptr` is more like a reference than a pointer: it cannot be null,
101-
and it cannot be re-assigned. The only reason why it is not called `virtual_ref`
102-
is to save the name in case it becomes possible to overload the dot operator in
103-
future versions of C++.

0 commit comments

Comments
 (0)