| Index: tools/json_schema_compiler/cc_generator.py
|
| diff --git a/tools/json_schema_compiler/cc_generator.py b/tools/json_schema_compiler/cc_generator.py
|
| index dbe797a17474ce1f5c2644aefce6efe8c1ef48bd..d5d7021ddfbb65cae2e056ab84ad6e48aa609a82 100644
|
| --- a/tools/json_schema_compiler/cc_generator.py
|
| +++ b/tools/json_schema_compiler/cc_generator.py
|
| @@ -100,12 +100,6 @@ class CCGenerator(object):
|
| c = Code()
|
|
|
| if type_.functions:
|
| - # Types with functions are not instantiable in C++ because they are
|
| - # handled in pure Javascript and hence have no properties or
|
| - # additionalProperties.
|
| - if type_.properties:
|
| - raise NotImplementedError('\n'.join(model.GetModelHierarchy(type_)) +
|
| - '\nCannot generate both functions and properties on a type')
|
| for function in type_.functions.values():
|
| (c.Concat(
|
| self._GenerateFunction(
|
|
|