c++ Programming Glossary: gotcha
Convert a C++ program to a Windows service? http://stackoverflow.com/questions/1554047/convert-a-c-program-to-a-windows-service service built and running you'll discover the next major gotcha it's a pain to debug. There's no terminal and hence no stdout..
C++ w/ OpenGL Pixel Perfect Plot http://stackoverflow.com/questions/15628269/c-w-opengl-pixel-perfect-plot placement in all cases. However there is a very common gotcha the center of each pixel will not have integer coordinates if..
Destructors and noexcept http://stackoverflow.com/questions/15721544/destructors-and-noexcept false . What am I missing here Is there some hidden gotcha with user defined destructors c c 11 destructor noexcept ..
Uniform initialization in C++0x, when to use () instead of {}? http://stackoverflow.com/questions/1863784/uniform-initialization-in-c0x-when-to-use-instead-of associated with the non uniform style Anyway the only gotcha which my question is about is that if you design a class without..
C++ template gotchas http://stackoverflow.com/questions/1877687/c-template-gotchas template gotchas just now I had to dig through the website to find out why.. functi f.template bar T what other bizarre aspects and gotcha of C C templates you have encountered that were not something..
Is there a simple script to convert C++ enum to string? http://stackoverflow.com/questions/201593/is-there-a-simple-script-to-convert-c-enum-to-string FOO case BAR return BAR default return INVALID ENUM The gotcha is really with typedefed enums and unnamed C style enums. Does..
C++, can I statically initialize a std::map at compile time? http://stackoverflow.com/questions/2172053/c-can-i-statically-initialize-a-stdmap-at-compile-time most popular probably will but I don't want to encounter a gotcha have to maintain 2 version s of the code. As to Boost I am undecided...
Finding “dead code” in a large C++ legacy application http://stackoverflow.com/questions/2380153/finding-dead-code-in-a-large-c-legacy-application Wikipedia List of tools for static code analysis The main gotcha I've run into is that you have to be careful that any libraries..
Why is Visual C++ lacking refactor functionality? http://stackoverflow.com/questions/363292/why-is-visual-c-lacking-refactor-functionality integrated in to the IDE when using C Is this due to some gotcha in the way that C must be parsed c visual studio visual studio..
Win32 SetForegroundWindow unreliable http://stackoverflow.com/questions/3772233/win32-setforegroundwindow-unreliable false I feel like I am missing an important gotcha when it comes to window switching. I know that only the foreground..
Where and why do I have to put the “template” and “typename” keywords? http://stackoverflow.com/questions/610245/where-and-why-do-i-have-to-put-the-template-and-typename-keywords always known to refer to types if they do so. A similar gotcha exists for names that denote templates as hinted at by the introductory..
Requirements for target application for Visual Studio 11's Graphics Debugger http://stackoverflow.com/questions/9696302/requirements-for-target-application-for-visual-studio-11s-graphics-debugger the device for it's factory later. Windows 7 has another gotcha you have to use D3D11CreateDevice IDXGIFactory CreateSwapChain..
Why does 'std::vector<int> b{2};' create a 1-element vector, and not a 2-element one? http://stackoverflow.com/questions/9723164/why-does-stdvectorint-b2-create-a-1-element-vector-and-not-a-2-element uniform initialization altogether. This seems like a big gotcha . But there might be advantages to it that I am not aware of...
|