jeudi, avril 04, 2019

Alarming discovery about blood sugar

Hello, 13ajdf39.blog

Date: Thu, 4 Apr 2019 15:40:01 -0400

 
 
 
 
 
 
 
 


 
 
 
User change

even downvoted to either. [removed] what. comments removed by moderator? this is supposedly the most american on this site, yet i guess some speech isn't . get on gab. wait where do you see that?

evaluation questionThe code above fails to compile in MSVC, because std::tuple_element_t will fail a static assertion when I exceeds the bounds of the tuple. This suggests that somehow the code in the discarded branch was evaluated as well, even though it is dependent on the template parameter I. Mainly the code has to be interspersed throughout the program to operate correctly. It also seems that GCC and Clang accepts this code without issue (tested on Compiler Explorer). Is the compilation error acceptable by the C++ standard, or is MSVC non-compliant here? (Also, if what I'm expecting the code to do isn't guaranteed by the standard, is there another way to accomplish nested constexpr-if statements?)

Aucun commentaire: