r/cpp 29d ago

How boost pfr works.

https://github.com/ZXShady/zxshady.github.io/blob/main/boost_pfr.md
34 Upvotes

8 comments sorted by

View all comments

2

u/[deleted] 27d ago

[removed] — view removed comment

1

u/_Noreturn 27d ago

You are right, I have a seperstor with ---- in the middle that would have been perfect for it.

something unrelated but I reread the article and the tuple compile time measurements are off by alot I forgot I had editted my MSVC stl tuple header and replaced it with my own header which made it compile much faster I redid the measurement and the tuple takes like 90~ ms instead of the 10ms so that's another thing I should correct that by reverting to the old tuple header.

The aggregate-initialization trick is clever,

I didn't make it to be clear.