So, according to the C++ grammar, it sure seems like for(some_struct X = {a, b, c}; ...) should work. MSVC is just plain broken I guess?
-
-
-
Replying to @HookTM
@GrumpyHook@cmuratori No compiler adheres to the spec. That's why we all use tiny subsets of C, like not initializing crap in random places2 replies 0 retweets 0 likes -
Replying to @tweets_dan
@gunvulture
@GrumpyHook Declaring a variable in a for loop is really important for macros; it's not like some super esoteric thing...3 replies 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori @gunvulture@GrumpyHook Does using a constructor work, i.e. for ( some_struct X (a,b,c); ...)1 reply 0 retweets 0 likes
Replying to @tom_forsyth
@tom_forsyth @gunvulture @GrumpyHook That is how I'm working around it currently (very painful, since it means you can't bracket _anywhere_)
4:21 PM - 30 May 2013
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.