Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 52e8f88c authored by VIEVILLE Thierry's avatar VIEVILLE Thierry
Browse files

sync from makefile

parent ad37df76
No related branches found
No related tags found
No related merge requests found
Pipeline #1013075 passed
......@@ -140,7 +140,7 @@ namespace symboling {
class MyType : public Type {
public:
MyType(JSON parameters) : Type("{name: MyType, parameter: value, ../..}") {
addType("MyType", [](JSON parameters) -> { return new MyType(parameters); }); // Allows to construct a type from a JSON specification
addType("MyType", [](JSON parameters) { return new MyType(parameters); }); // Allows to construct a type from a JSON specification
../..
}
MyType(String parameters) : MyType(wjson::string2json(parameters)) {}
......
......@@ -52,7 +52,7 @@ namespace symboling {
* class MyType : public Type {
* public:
* MyType(JSON parameters) : Type("{name: MyType, parameter: value, ../..}") {
* addType("MyType", [](JSON parameters) -> { return new MyType(parameters); }); // Allows to construct a type from a JSON specification
* addType("MyType", [](JSON parameters) { return new MyType(parameters); }); // Allows to construct a type from a JSON specification
* ../..
* }
* MyType(String parameters) : MyType(wjson::string2json(parameters)) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment