@cmuratori thought you might like this: C++11 swap w/o tmplts
#define SWAP_VALS(v0, v1) { \
decltype(v0) t = v0; \
v0 = v1; \
v1 = t; \
}
@DyadGame "auto" seemed like it could save some time as well - ie., where you just let the return type of a function imply the receiver var.
-
-
@cmuratori Yeah, I listed that... I use it so infrequently though. I think it solves some problems that templates create, but not much else -
@DyadGame Yeah, it doesn't really solve problems, just saves some typing, probably.
End of conversation
New conversation -
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.