Skip to content

Commit

Permalink
Fixing named tuple example
Browse files Browse the repository at this point in the history
  • Loading branch information
brevzin committed Feb 15, 2024
1 parent 403b2fe commit c3c729b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2996_reflection/reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ consteval auto make_named_tuple(std::meta::info type, Tags... tags) {
std::vector<std::meta::info> nsdms;
auto f = [&]<class Tag>(Tag tag){
nsdms.push_back(data_member_spec(
dealias(^Tag::type),
dealias(^typename Tag::type),
{.name=Tag::name()}));

};
Expand All @@ -1103,7 +1103,7 @@ int main() {
```
:::
[On Compiler Explorer](https://godbolt.org/z/GKM4947fM).
[On Compiler Explorer](https://godbolt.org/z/nMx4M9sdT).
## Compile-Time Ticket Counter
Expand Down

0 comments on commit c3c729b

Please sign in to comment.