|
we talking pre or post c++11 here?
|
# ¿ Jun 2, 2023 16:03 |
|
|
# ¿ May 15, 2024 08:00 |
|
if that's anywhere near the hardest thing to figure out with whatever c++ codebase you're working with then consider yourself lucky
|
# ¿ Jun 2, 2023 16:14 |
|
echinopsis posted:does auto make types like in js? coz I love having my no it doesn't and thank loving god for it. the compiler has to be able to figure out the type at compile time for it to work we are, of course, talking about auto when used as placeholder for a local variable type here, because in true c++ fashion every keyword needs to have as many different meaning as possible in different context (though thankfully all of them still require the type to be deducible at compile time). we're not talking about auto used as, say, a function parameter type as is now allowed in c++20. possibly with concepts acting as constraints. or as part of decltype(auto) and its delightfully obvious meaning. or its effect of transforming a normal god-fearing r-value reference into a universal reference of loose morals when replacing a concrete type in a variable definition. or the type of firearm best suited to ending my suffering
|
# ¿ Jun 2, 2023 20:13 |
|
echinopsis posted:this post is a fuckfest wish that were true for my actual life
|
# ¿ Jun 2, 2023 21:36 |
|
akadajet posted:yeah, especially when your libraries are built on the house of cards that is c++ templates. it's not a house of cards! it's a conceptual blueprint that contains latent house-like structures which can potentially be built from cards! or from reinforced concrete or from drywall
|
# ¿ Jun 3, 2023 04:22 |
|
i just find some global variable with the type i need and use decltype() to create a new one with the same type
|
# ¿ Jun 5, 2023 01:16 |
|
can we please not have this discussion again? all programming languages are bad because computers are bad and so is anything computer adjacent, computer touchers most of all
|
# ¿ Jun 5, 2023 15:24 |
|
|
# ¿ May 15, 2024 08:00 |
|
Twerk from Home posted:This guy c++es no i'm just dangerously unhinged as evidenced by the fact that c++ is my favorite language
|
# ¿ Jun 6, 2023 19:05 |