@@ -429,7 +429,7 @@ class type_declaration
429
429
430
430
431
431
#line 528 "reflect.h2"
432
- public: auto add_declaration (cpp2::in<std::string_view> source) & -> void;
432
+ public: auto add_declaration_to_parent_namespace (cpp2::in<std::string_view> source) & -> void;
433
433
434
434
435
435
#line 535 "reflect.h2"
@@ -1213,7 +1213,7 @@ declaration::declaration(declaration const& that)
1213
1213
}
1214
1214
}
1215
1215
1216
- auto type_declaration::add_declaration (cpp2::in<std::string_view> source) & -> void
1216
+ auto type_declaration::add_declaration_to_parent_namespace (cpp2::in<std::string_view> source) & -> void
1217
1217
{
1218
1218
if (!(parse_and_add_declaration (source))) {
1219
1219
error (std::string (" error attempting to add declaration:\n " ) + source);
@@ -1788,7 +1788,7 @@ auto print(cpp2::in<meta::type_declaration> t) -> void
1788
1788
#line 1269 "reflect.h2"
1789
1789
auto maker (meta::type_declaration& t) -> void
1790
1790
{
1791
- CPP2_UFCS (add_declaration , t, " make_" + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " : (args...: _) -> _ = { return " + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " (args...); }" );
1791
+ CPP2_UFCS (add_declaration_to_parent_namespace , t, " make_" + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " : (args...: _) -> _ = { return " + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " (args...); }" );
1792
1792
}
1793
1793
1794
1794
#line 1278 "reflect.h2"
@@ -1797,9 +1797,9 @@ auto generate_binary_expression(meta::type_declaration& t) -> void
1797
1797
1798
1798
std::string op_name {CPP2_UFCS (substr, CPP2_UFCS_0 (name, t), 8 )}; // Skip 'Operator'
1799
1799
1800
- CPP2_UFCS (add_declaration , t, cpp2::to_string (op_name) + " : <A, B> (arg_a: Expression<A>, arg_b: Expression<B>) -> _ = BinaryExpression<A, B, " + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " >(arg_a, arg_b);" );
1801
- CPP2_UFCS (add_declaration , t, cpp2::to_string (op_name) + " : <A> (arg_a: Expression<A>, arg_b: double) -> _ = BinaryExpression<A, Constant<double>, " + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " >(arg_a, Constant<double>(arg_b));" );
1802
- CPP2_UFCS (add_declaration , t, cpp2::to_string (std::move (op_name)) + " : <B> (arg_a: double, arg_b: Expression<B>) -> _ = BinaryExpression<Constant<double>, B, " + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " >(Constant<double>(arg_a), arg_b);" );
1800
+ CPP2_UFCS (add_declaration_to_parent_namespace , t, cpp2::to_string (op_name) + " : <A, B> (arg_a: Expression<A>, arg_b: Expression<B>) -> _ = BinaryExpression<A, B, " + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " >(arg_a, arg_b);" );
1801
+ CPP2_UFCS (add_declaration_to_parent_namespace , t, cpp2::to_string (op_name) + " : <A> (arg_a: Expression<A>, arg_b: double) -> _ = BinaryExpression<A, Constant<double>, " + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " >(arg_a, Constant<double>(arg_b));" );
1802
+ CPP2_UFCS (add_declaration_to_parent_namespace , t, cpp2::to_string (std::move (op_name)) + " : <B> (arg_a: double, arg_b: Expression<B>) -> _ = BinaryExpression<Constant<double>, B, " + cpp2::to_string (CPP2_UFCS_0 (name, t)) + " >(Constant<double>(arg_a), arg_b);" );
1803
1803
}
1804
1804
1805
1805
#line 1293 "reflect.h2"
0 commit comments