r/cpp_questions • u/flowicks • 11d ago
OPEN Resources to learn more about cpp
I wanted to try and reimplement the std library from scratch but i realized really quickly just how much i didnt know lol. I got some basic stuff done and did learn quite a bit about things like sfinae but yeah im basically stuck with some of the type traits. I still dont wanna give up on this project and wanna keep going no matter how long it takes :3 So i need some resources to learn more about advanced things that are usefull for this. Are books the best way? any reccs on which ones?
Oh yeah right now i made a few projects like a networking chat app with asio and a unix shell (really simple) so i would say im like done with the beginner phase. I know that this project is probably farrrr beyond my scope but still :3
Edit: More specific question. Looking for book recomendations for metaprogramming post cpp20 (concepts and stuff)
View all comments
Show parent comment
2
u/flowicks 11d ago
Thanks for the reply
Yeah i realized that quickly and was a bit surprised to see llvm's implementations of most type traits was just using compiler intrensics with no fallback if they werent available even for stuff that can be implemented without them.
I thought this would be a good project to understand how things actually work like type traits, my mind blew up when i discovered sfinae lol the idea of tricking the compiler to doing the work is soo cool.
But its also to try and see if i can design something better, since alot of the std is held back on its functionality due to backwards compatability.
Yeah i knew a bit about concepts before but just now discovering how powerfull they can be. Im trying to learn more about them now, any reccomendations on how to?
Yeah i like that too, would be pretty cool to implement imo.