Skip to content

Commit 6a88b2e

Browse files
committed
Trying to fix msvc.
1 parent c0ac40e commit 6a88b2e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/reflect.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5678,9 +5678,9 @@ auto basic_enum(
56785678
cpp2::i64 max_value {};
56795679
cpp2::impl::deferred_init<std::string> underlying_type;
56805680

5681-
CPP2_UFCS(reserve_names)(t, "operator=", "operator<=>");
5681+
t.reserve_names("operator=", "operator<=>");
56825682
if (bitwise) {
5683-
CPP2_UFCS(reserve_names)(t, "has", "set", "clear", "to_string", "get_raw_value", "none");
5683+
t.reserve_names("has", "set", "clear", "to_string", "get_raw_value", "none");
56845684
}
56855685

56865686
// 1. Gather: The names of all the user-written members, and find/compute the type
@@ -6251,7 +6251,7 @@ auto noisy(cpp2::impl::in<meta::type_declaration> t) -> void
62516251
names += std::string("pybind11::arg(\"") + CPP2_UFCS(name)(CPP2_UFCS(get_declaration)(param)) + "\")";
62526252
types += CPP2_UFCS(type)(CPP2_UFCS(get_declaration)(param));
62536253
}
6254-
// TODO: Remove when fixed. Force newline for return.
6254+
// TODO: Remove when fixed (https://github.com/hsutter/cppfront/issues/1426). Force newline for return.
62556255
static_cast<void>(names);
62566256
return { std::move(names), std::move(types) }; }
62576257

source/reflect.h2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,9 +1990,9 @@ basic_enum: (
19901990
max_value : i64 = ();
19911991
underlying_type : std::string;
19921992

1993-
t.reserve_names( "operator=", "operator<=>" );
1993+
t..reserve_names( "operator=", "operator<=>" );
19941994
if bitwise {
1995-
t.reserve_names( "has", "set", "clear", "to_string", "get_raw_value", "none" );
1995+
t..reserve_names( "has", "set", "clear", "to_string", "get_raw_value", "none" );
19961996
}
19971997

19981998
// 1. Gather: The names of all the user-written members, and find/compute the type
@@ -2520,7 +2520,7 @@ python_param_names_and_types: (mf: meta::function_declaration)
25202520
names += std::string("pybind11::arg(\"") + param.get_declaration().name() + "\")";
25212521
types += param.get_declaration().type();
25222522
}
2523-
// TODO: Remove when fixed. Force newline for return.
2523+
// TODO: Remove when fixed (https://github.com/hsutter/cppfront/issues/1426). Force newline for return.
25242524
_ = names;
25252525
}
25262526

0 commit comments

Comments
 (0)