@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; \
}
-
-
@cmuratori A couple of the new C++11 features are useful. decltype/auto, typed enums... that's about it. ie: enum Ename : ubyte... or smthng -
@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. - Show replies
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.