¡@

Home 

c++ Programming Glossary: problems

C++ Singleton design pattern

http://stackoverflow.com/questions/1008019/c-singleton-design-pattern

initialisation order Finding C static initialization order problems See this article describing lifetimes What is the lifetime of..

System(“pause”); - Why is it wrong?

http://stackoverflow.com/questions/1107705/systempause-why-is-it-wrong

throwing exceptions out of a destructor

http://stackoverflow.com/questions/130117/throwing-exceptions-out-of-a-destructor

the user of a file object wants to do special handling for problems associated to closing the file they will manually call close..

Why is “using namespace std;” considered bad practice?

http://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice

fine you can call Blah from Foo and Quux from Bar without problems. But one day you upgrade to a new version of Foo 2.0 which now..

Is delete[] equal to delete?

http://stackoverflow.com/questions/1553382/is-delete-equal-to-delete

apartment or lets everything work fine with no apparent problems is undefined. It might be this way with one compiler and change..

Most effective way for float and double comparison

http://stackoverflow.com/questions/17333/most-effective-way-for-float-and-double-comparison

a system that presumed a b if a b epsion . The underlying problems were The implicit presumption in an algorithm that if a b and..

What is the copy-and-swap idiom?

http://stackoverflow.com/questions/3279543/what-is-the-copy-and-swap-idiom

idiom What is this idiom and when should it be used Which problems does it solve Does the idiom change when C 11 is used Although.. an array without leaks. However it suffers from three problems marked sequentially in the code as n . The first is the self.. 2 return this And that's it With one fell swoop all three problems are elegantly tackled at once. Why does it work We first notice..

What can I use to profile C++ code in Linux?

http://stackoverflow.com/questions/375913/what-can-i-use-to-profile-c-code-in-linux

subjectively slow there's a simple way to find performance problems. Just halt it several times and each time look at the call stack... prove or disprove it. You may have multiple performance problems of different sizes. If you clean out any one of them the remaining.. better on bigger programs because they tend to have more problems to find. P.S. This can also be done on multi thread programs..

RAII and smart pointers in C++

http://stackoverflow.com/questions/395123/raii-and-smart-pointers-in-c

file Do stuff with file finally file.close C solves both problems using RAII that is closing the file in the destructor of File...

Why is iostream::eof inside a loop condition considered wrong?

http://stackoverflow.com/questions/5605125/why-is-iostreameof-inside-a-loop-condition-considered-wrong

using scanf ... ... EOF in C which I often use with no problems c iostream c faq share improve this question Because iostream..

OpenCV 2.3 C++ Visual Studio 2010

http://stackoverflow.com/questions/7011238/opencv-2-3-c-visual-studio-2010

Studio 2010 Express since a lot of folks seem to have problems setting it up correctly. Download OpenCV 2.3.0 win superpack.exe..

“unpacking” a tuple to call a matching function pointer

http://stackoverflow.com/questions/7858817/unpacking-a-tuple-to-call-a-matching-function-pointer

double void a b c f saved.delayed_dispatch Normally for problems involving std tuple or variadic templates I'd write another..

Singleton: How should it be used

http://stackoverflow.com/questions/86582/singleton-how-should-it-be-used

my hand up and say this is what I use but probably has problems. I like Scott Myers handling of the subject in his books Effective.. www.aristeia.com Papers DDJ_Jul_Aug_2004_revised.pdf For problems associated with locking in multi threaded applications Limitation..

Problems passing array by reference to threads

http://stackoverflow.com/questions/12801862/problems-passing-array-by-reference-to-threads

passing array by reference to threads I'm learning threading..

Good Intro to COM Programming [closed]

http://stackoverflow.com/questions/129276/good-intro-to-com-programming

also by Kraig Brockschmidt How OLE and COM Solve the Problems of Component Software Design How COM Solves the Problems of.. Problems of Component Software Design How COM Solves the Problems of Component Software Design Part II share improve this answer..

Problems with Singleton Pattern

http://stackoverflow.com/questions/1392315/problems-with-singleton-pattern

with Singleton Pattern I've been reading about Singleton pattern..

Downloading and integrating Qt5 with Visual Studio 2012

http://stackoverflow.com/questions/15826893/downloading-and-integrating-qt5-with-visual-studio-2012

non default modules you can always add them later. General Problems If at some point you get the error saying that the command python.. file. Then begin the nmake process on Qt5 again. Specific Problems WARNING You may need to disable antivirus software AND SANDBOXING..

Boost Property Tree and Xml parsing Problems

http://stackoverflow.com/questions/1794418/boost-property-tree-and-xml-parsing-problems

Property Tree and Xml parsing Problems I'm using boost property_tree . The documentation is very vague..

Static or dynamic linking the CRT, MFC, ATL, etc

http://stackoverflow.com/questions/238465/static-or-dynamic-linking-the-crt-mfc-atl-etc

downsides Bigger exe size esp if you ship multiple exe's Problems using other DLL's which rely on or assume dynamic linking eg..

2D Platformer Collision Problems With Both Axes

http://stackoverflow.com/questions/2656943/2d-platformer-collision-problems-with-both-axes

Platformer Collision Problems With Both Axes I'm working on a little 2D platformer fighting..

what is “operator T*(void)” and when it is invoked?

http://stackoverflow.com/questions/275169/what-is-operator-tvoid-and-when-it-is-invoked

of class std ostream operator which takes a void . Other Problems To help you figure out other problems change the header file..

Finding C++ static initialization order problems

http://stackoverflow.com/questions/335369/finding-c-static-initialization-order-problems

away the locking. This will not work in C Creation Problems On creation there are no problems because we guarantee that.. that it is created before it can be used. Destruction Problems There is a potential problem of accessing the object after it..

Is it safe to use STL (TR1) shared_ptr's between modules (exes and dlls)

http://stackoverflow.com/questions/345003/is-it-safe-to-use-stl-tr1-shared-ptrs-between-modules-exes-and-dlls

delete ing it in another can often cause problems in VC . Problems with different runtimes. Mixing modules with staticly linked..

Multithreading reference?

http://stackoverflow.com/questions/601558/multithreading-reference

of Hyper Threading Concurrency Hazards Solving 11 Likely Problems In Your Multithreaded Code INFO Descriptions and Workings of..

Problems converting YV12 to RGB through GLSL

http://stackoverflow.com/questions/8977489/problems-converting-yv12-to-rgb-through-glsl

converting YV12 to RGB through GLSL I'm trying to accomplish..