Révision | 8bade3689a0716129835dfce94c329b01b64f67c (tree) |
---|---|
l'heure | 2020-05-24 07:00:16 |
Auteur | Tomasz Konojacki <me@xenu...> |
Commiter | Tomasz Konojacki |
sdasad
@@ -63,7 +63,7 @@ | ||
63 | 63 | // () is a magic value that signals the end of the list, see _SM_DISCARD_IF_END(). |
64 | 64 | #define _SM_FOREACH(...) _SM_FOREACH2(__VA_ARGS__, ()) |
65 | 65 | |
66 | -#define _SM_ADD_FIELD(field_name) { #field_name , &std::remove_pointer<decltype(this)>::type::field_name } | |
66 | +#define _SM_ADD_FIELD(name) { #name , &std::remove_pointer<decltype(this)>::type::name } | |
67 | 67 | |
68 | 68 | // SM_MAPIFY_STRUCT(type, field1, ...) is a macro that adds std::map-like at() |
69 | 69 | // and contains() methods to a struct for specified fields. All mapified fields |