Do you have any C++ question? I will try to answer it.
-
-
Sometimes escape analysis, strict aliasing, restrict etc can get the job done, but it's unreliable as hell. I often see hotspots in profiles dereferencing multiple levels of pointers repeatedly, just because of an intermittent function call.
-
you are describing undefined behavior, const value in a scope can't be changed by a current thread, compile with -fstrict-aliasing
- 14 more replies
New conversation -
-
-
What if you just take the object you 'don't want to change' by value? The compiler is still allowed to optimize the copy away, but you get the guarantee that the original is not changed...
-
They're too complex / large, and the objects often contain pointers themselves.
- 2 more 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.