Skip to content

Commit caff4da

Browse files
committed
Some additions to tutorial23 README.
1 parent 143384a commit caff4da

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

tutorials/tutorial23/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,24 @@ using ClientProtocolOptions =
8888
>
8989
>;
9090
```
91+
92+
The [ServerSession](src/ServerSession.h) used even more complex definition:
93+
```cpp
94+
using ExtProtocolOptions =
95+
t23_ext::options::DataViewDefaultOptionsT<
96+
t23_ext::options::ServerDefaultOptions
97+
>;
98+
99+
using ServerProtocolOptions =
100+
tutorial23::options::DataViewDefaultOptionsT<
101+
tutorial23::options::ServerDefaultOptionsT<
102+
tutorial23::options::DefaultOptionsT<
103+
ExtProtocolOptions
104+
>
105+
>
106+
>;
107+
```
108+
91109
Without using options from the `t23_ext::options` the compilation will fail because
92110
`t23_ext::ns1::field::S1` [field](include/t23_ext/ns1/field/S1.h) attempts to
93111
access the options referencing `typename TOpt::t23_ext::ns1::field::S1`, which
@@ -125,7 +143,7 @@ than **&lt;ref&gt;**-erence them.
125143
- External schema definitions reuse is supported since **v5.0** of the [CommsDSL](https://commschamp.github.io/commsdsl_spec)
126144
and [commsdsl](https://github/commschamp/commsdsl) code generators.
127145
- Inter-schema referencing is allowed using `@<schema_name>.` prefix.
128-
- When using multiple schemas it is hight recommended to **reuse** the fields rather
146+
- When using multiple schemas it is highly recommended to **reuse** the fields rather
129147
than **&lt;ref&gt;**-erence them.
130148
131149

0 commit comments

Comments
 (0)