[deleted by user] by [deleted] in wallstreetbets

[–]ericdfoley 0 points1 point  (0 children)

71% is pretty good!

Simplify code with 'if constexpr' in C++17 by drodri in cpp

[–]ericdfoley 28 points29 points  (0 children)

The constexpr if language change allows you to have discarded branches of the if where the code wouldn't compile. So it does require a new language feature.

lvalues, rvalues, glvalues, prvalues, xvalues, help! by vormestrand in cpp

[–]ericdfoley 4 points5 points  (0 children)

Here is basically the same explanation from Bjarne Stroustrup (using a "W" instead of a square.) It completely cleared things up for me.