Conversation started Nov 15, 2013 at 13:34.
Nov 15, 2013 13:34
@LightnessRacesinOrbit isn't the code violating 7.1.2/4; "An inline function shall be defined in every translation unit in which it is ODR-used and shall have exactly the same definition in every case"?
oh puppy
hai
@refp yes, it's violating ODR in a very subtle way. The definition looks the same, but isn't because the static is a different variable in different TUs
@LightnessRacesinOrbit since &local isn't taking the adress of exactly the same variable one could say that the definition isn't the same across TUs
@ArneMertz mhm, exactly.
 
Conversation ended Nov 15, 2013 at 13:35.