summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-06-18 20:01:55 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-06-18 20:02:10 -0300
commitc40ecb62820c1ebf59020602aee6391540e0520f (patch)
tree29c288eaa34915c70a9c44830a0b31b73f5eb964 /src/lib/eolian_cxx
parent800ac197f8944141d82c1e8960be87ec8cde4194 (diff)
eolian-cxx: Add constructor with default argument
Fixes compilation error in clang. T5588
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index 583744b503..14fa31d3ea 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -171,10 +171,16 @@ get(klass_name const& klass)
171 171
172struct regular_type_def 172struct regular_type_def
173{ 173{
174 regular_type_def() : is_undefined(false) {}
175 regular_type_def(std::string base_type, qualifier_def qual, std::vector<std::string> namespaces
176 , bool is_undefined = false)
177 : base_type(std::move(base_type)), base_qualifier(qual), namespaces(std::move(namespaces))
178 , is_undefined(is_undefined) {}
179
174 std::string base_type; 180 std::string base_type;
175 qualifier_def base_qualifier; 181 qualifier_def base_qualifier;
176 std::vector<std::string> namespaces; 182 std::vector<std::string> namespaces;
177 bool is_undefined = false; 183 bool is_undefined;
178}; 184};
179 185
180inline bool operator==(regular_type_def const& rhs, regular_type_def const& lhs) 186inline bool operator==(regular_type_def const& rhs, regular_type_def const& lhs)