4 ms·
I wouldn’t say these are a special sauce that C++ has to make these Platonic solids.
by creativenolo 4y ago
I wouldn’t say these are a special sauce that C++ has to make these Platonic solids.
- zabzonk 4y agono, but they are modern c++ constructs. the title of the post did not imply that the article was about some bizzaro means of constructing the solids using template meta-programming, or such. many c++ programmers wish that people would not do such things - not everything needs to be calculated at compile-time.
- rom-antics 4y agofor (auto f : mesh.faces(v)) vertices.push_back(fvertex[f]); What is so bizzaro about this? For loops and `auto` are both pretty standard features for a programming language.
- kccqzy 4y agoGP is saying many wish that people won't use template meta-programming. You quoted a bog standard piece of code that doesn't use template meta-programming.
- rom-antics 4y agoYeah, that is bog standard code. All the code in the post is. I'm just trying to figure out why we're complaining about template meta-programming, because I didn't see any in TFA and I sure didn't see any code that deserved being called bizzaro.
- zabzonk 4y agoi didn't call it bizzaro, creativenolo was observing about it not using C++ special sauce, which i took to mean strange template stuff
- zabzonk 4y agomodern c++, as i said in the post you are replying to though maybe emplace_back?