diff --git a/ridlbe/c++11/writers/stubheader.rb b/ridlbe/c++11/writers/stubheader.rb index aaf822b9..241f4b6a 100644 --- a/ridlbe/c++11/writers/stubheader.rb +++ b/ridlbe/c++11/writers/stubheader.rb @@ -266,7 +266,7 @@ def visit_const(node) if node.enclosure.is_a?(IDL::AST::Module) printi("const #{node.idltype.cxx_type(node.enclosure)} ") else - printi("static const #{node.idltype.cxx_type(node.enclosure)} ") + printi("static inline const #{node.idltype.cxx_type(node.enclosure)} {#{expression_to_s(node.expression, node.enclosure)}}") end else if node.enclosure.is_a?(IDL::AST::Module)