this post was submitted on 25 Jan 2024
7 points (100.0% liked)
C++
1762 readers
1 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Templates are definitely one of the main strengths of C++ that will make me stick with this language for many years to come. They're the closest thing to C++ introspection that we have right now and they allow you to basically make your own personal development environment with your own rules.
If you're interested in templates metaprogramming to do stuff at compile-time and not just using templates as a replacement for macros, these are a some must-watch talks:
-ftime-trace
will not help you if you're working with very large expression templates resulting in a json dump weighing 30GB+ and you need to narrow down the problem by reasoning from first principles.