summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-15 17:48:30 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-15 17:49:56 -0300
commit9a407761bc77e51cad040d1aff31ab7025342f69 (patch)
tree2710c16042dc256e1a1aa5b7d92b12d648a87b8e /src/lib/eolian_cxx
parent7e0692b5f377beb89fdc6841bc2dd763cdd88ea3 (diff)
eolian-cxx: Fix generation of non-inline function in headers
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/class_implementation.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eolian_cxx/grammar/class_implementation.hpp b/src/lib/eolian_cxx/grammar/class_implementation.hpp
index 093d7af8ad..3e9174f936 100644
--- a/src/lib/eolian_cxx/grammar/class_implementation.hpp
+++ b/src/lib/eolian_cxx/grammar/class_implementation.hpp
@@ -39,11 +39,11 @@ struct class_implementation_generator
39 << namespaces 39 << namespaces
40 [ 40 [
41 *function_definition(get_klass_name(cls)) 41 *function_definition(get_klass_name(cls))
42 << base_class_name << "::operator " << class_name << "() const { return *static_cast< " 42 << "inline " << base_class_name << "::operator " << class_name << "() const { return *static_cast< "
43 << class_name << " const*>(static_cast<void const*>(this)); }\n" 43 << class_name << " const*>(static_cast<void const*>(this)); }\n"
44 << base_class_name << "::operator " << class_name << "&() { return *static_cast< " 44 << "inline " << base_class_name << "::operator " << class_name << "&() { return *static_cast< "
45 << class_name << "*>(static_cast<void*>(this)); }\n" 45 << class_name << "*>(static_cast<void*>(this)); }\n"
46 << base_class_name << "::operator " << class_name << " const&() const { return *static_cast< " 46 << "inline " << base_class_name << "::operator " << class_name << " const&() const { return *static_cast< "
47 << class_name << " const*>(static_cast<void const*>(this)); }\n" 47 << class_name << " const*>(static_cast<void const*>(this)); }\n"
48 ] 48 ]
49 << "}\n\n" 49 << "}\n\n"