File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff 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+
91109Without 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
93111access the options referencing ` typename TOpt::t23_ext::ns1::field::S1 ` , which
@@ -125,7 +143,7 @@ than **<ref>**-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
129147than **<ref>**-erence them.
130148
131149
You can’t perform that action at this time.
0 commit comments