summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorLarry Jr <larry.olj@gmail.com>2016-06-06 03:28:33 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-06 03:30:42 -0300
commit6680eca35902360243e99f153a38bdc32eea0314 (patch)
tree4b42d70d3c6fc3833a5ee6b7fe4ef30c9486e5c6 /src/lib/eolian_cxx
parentc9c178f2db01d04fc43ade6f0cdab105a19d4e85 (diff)
eolian-cxx: fix compilation errors an olders gcc
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/type_impl.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eolian_cxx/grammar/type_impl.hpp b/src/lib/eolian_cxx/grammar/type_impl.hpp
index 5b8e7f2b7e..0827f571f6 100644
--- a/src/lib/eolian_cxx/grammar/type_impl.hpp
+++ b/src/lib/eolian_cxx/grammar/type_impl.hpp
@@ -201,7 +201,7 @@ struct visitor_generate
201 std::swap(pointers, pointee.pointers); 201 std::swap(pointers, pointee.pointers);
202 pointers.erase(pointers.begin()); 202 pointers.erase(pointers.begin());
203 203
204 attributes::pointer_indirection reference {{{},{}}, true}; 204 attributes::pointer_indirection reference {{attributes::qualifier_info::is_none,{}}, true};
205 205
206 return as_generator(" ::std::unique_ptr<" << type).generate 206 return as_generator(" ::std::unique_ptr<" << type).generate
207 (sink, attributes::type_def{pointee, c_type}, *context) 207 (sink, attributes::type_def{pointee, c_type}, *context)
@@ -213,7 +213,7 @@ struct visitor_generate
213 { 213 {
214 auto pointers = regular.pointers; 214 auto pointers = regular.pointers;
215 if(is_out) 215 if(is_out)
216 pointers.push_back({{{},{}}, true}); 216 pointers.push_back({{attributes::qualifier_info::is_none,{}}, true});
217 if(as_generator(*(string << "_") << string << (is_const(regular.base_qualifier)? " const" : "")) 217 if(as_generator(*(string << "_") << string << (is_const(regular.base_qualifier)? " const" : ""))
218 .generate(sink, std::make_tuple(regular.namespaces, regular.base_type), *context)) 218 .generate(sink, std::make_tuple(regular.namespaces, regular.base_type), *context))
219 return detail::generate_pointers(sink, pointers, *context 219 return detail::generate_pointers(sink, pointers, *context
@@ -225,7 +225,7 @@ struct visitor_generate
225 bool operator()(attributes::klass_name klass) const 225 bool operator()(attributes::klass_name klass) const
226 { 226 {
227 if(is_out) 227 if(is_out)
228 klass.pointers.push_back({{{}, {}}, true}); 228 klass.pointers.push_back({{attributes::qualifier_info::is_none, {}}, true});
229 if(as_generator(" " << *("::" << lower_case[string]) << "::" << string) 229 if(as_generator(" " << *("::" << lower_case[string]) << "::" << string)
230 .generate(sink, std::make_tuple(attributes::cpp_namespaces(klass.namespaces), klass.eolian_name), *context)) 230 .generate(sink, std::make_tuple(attributes::cpp_namespaces(klass.namespaces), klass.eolian_name), *context))
231 return detail::generate_pointers(sink, klass.pointers, *context, false); 231 return detail::generate_pointers(sink, klass.pointers, *context, false);
@@ -296,7 +296,7 @@ struct visitor_generate
296 std::vector<attributes::pointer_indirection> pointers; 296 std::vector<attributes::pointer_indirection> pointers;
297 pointers.swap(no_pointer_regular.pointers); 297 pointers.swap(no_pointer_regular.pointers);
298 if(is_out) 298 if(is_out)
299 pointers.push_back({{{}, {}}, true}); 299 pointers.push_back({{attributes::qualifier_info::is_none, {}}, true});
300 return visitor_type{sink, context, c_type, false}(no_pointer_regular) 300 return visitor_type{sink, context, c_type, false}(no_pointer_regular)
301 && as_generator("<" << (type % ", ") << ">").generate(sink, complex.subtypes, *context) 301 && as_generator("<" << (type % ", ") << ">").generate(sink, complex.subtypes, *context)
302 && detail::generate_pointers(sink, pointers, *context, false); 302 && detail::generate_pointers(sink, pointers, *context, false);