Closed Ecordonnier closed 5 months ago
yes, I think we need to solve that by changing class with something else. Perhaps adding a underscore at the end?
This must be solved in the libocispec repo though: https://github.com/containers/libocispec
yes, I think we need to solve that by changing class with something else. Perhaps adding a underscore at the end?
This must be solved in the libocispec repo though: https://github.com/containers/libocispec
OK, I cloned the issue to https://github.com/containers/libocispec/issues/132 . Do you want to close this one?
thanks, closing it now
I am trying to consume libcrun in a c++ program compiled with clang++ 17 by including libcrun/container.h in "extern C" blocks.
The issue is that container.h includes ocispec/runtime_spec_schema_config_schema.h, which contains the following code which uses the reserved c++ keyword "class":
Thus the compilation fails.
I am not familiar with the crun repository. Should this be fixed by replacing the "class" keyword while generating the C header-file in https://github.com/containers/libocispec/blob/main/src/ocispec/headers.py ?