¡@

Home 

c++ Programming Glossary: problem

What is a smart pointer and when should I use one?

http://stackoverflow.com/questions/106508/what-is-a-smart-pointer-and-when-should-i-use-one

zero The objects are never destroyed To work around this problem both boost and C 11 define weak_ptr to define a weak uncounted..

What are the rules about using an underscore in a C++ identifier?

http://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier

names for your own purposes right now might not cause a problem they do raise the possibility of conflict with future versions..

Undefined, unspecified and implementation-defined behavior

http://stackoverflow.com/questions/2397984/undefined-unspecified-and-implementation-defined-behavior

I can hear people screaming But wait I can compile this no problem and get the output yellow or What do you mean undefined string.. attempt results in a core dump . This is exactly the problem with undefined behavior. Basically the standard allows anything..

What is the slicing problem in C++?

http://stackoverflow.com/questions/274626/what-is-the-slicing-problem-in-c

is the slicing problem in C Someone mentioned it in the IRC but google doesn't have..

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.. this The code has expanded Which leads us to the third problem code duplication. Our assignment operator effectively duplicates..

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.. guesswork required. If you do have a guess as to what the problem is this will prove or disprove it. You may have multiple performance.. prove or disprove it. You may have multiple performance problems of different sizes. If you clean out any one of them the remaining..

What is The Rule of Three?

http://stackoverflow.com/questions/4172722/what-is-the-rule-of-three

an explicit check. An even more robust solution to this problem is the copy and swap idiom but I will not go into the details..

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

be instantiated for any U template struct inUnion T The problem I have is in the typedef Tail inUnion U dummy line. I'm fairly.. this is called name lookup. This however presents a problem in templates How will you find out what a name t x refers to.. 1 . The typename keyword Let's get back to our initial problem how can we parse t x f The answer is In this case we decide..

Can a local variable's memory be accessed outside its scope?

http://stackoverflow.com/questions/6441218/can-a-local-variables-memory-be-accessed-outside-its-scope

obviously that scenario can happen in the real world no problem. There is no mysterious force that causes your book to disappear.. not going to stop you. Safer languages than C solve this problem by restricting your power by having much stricter control over.. truly awful goes wrong and the process explodes. This is problematic. There are a lot of rules and it is very easy to break them..

Run an Application in GDB Until an Exception Occurs

http://stackoverflow.com/questions/1115428/run-an-application-in-gdb-until-an-exception-occurs

application and I want to debug it using GDB. Problem is one of my threads keeps dying with the message pure virtual..

Displaying the #include hierarchy for a C++ file in Visual Studio

http://stackoverflow.com/questions/1137966/displaying-the-include-hierarchy-for-a-c-file-in-visual-studio

the #include hierarchy for a C file in Visual Studio Problem I have a large Visual C project that I'm trying to migrate to..

On OS X, simple C++ program gives incorrect results (which are a result of command-line options 'c++03' vs 'c++11')

http://stackoverflow.com/questions/14149835/on-os-x-simple-c-program-gives-incorrect-results-which-are-a-result-of-comma

based on whether it's compiled with std c 0x or not. Problem I cannot reproduce the same thing on OS X Mountain Lion 10.8..

Using Maven for C/C++ projects

http://stackoverflow.com/questions/1541771/using-maven-for-c-c-projects

and frankly primitive C C code meaning some C some C . Problem is there's lots of it in circulation currently and cannot be..

finding size of int array

http://stackoverflow.com/questions/2037736/finding-size-of-int-array

array. But for int array checking ' 0' seems not working. Problem sizeof array sizeof array 0 only works in main If i use it inside..

c++ virtual inheritance

http://stackoverflow.com/questions/2126522/c-virtual-inheritance

virtual inheritance Problem class Base public Base Base pParent implements basic stuff class..

stl::multimap - how do i get groups of data?

http://stackoverflow.com/questions/247818/stlmultimap-how-do-i-get-groups-of-data

this multimap and get the aggregate values of each group . Problem is there aren't any functions defined in STL to access MultiMaps..

Problem of using cin twice

http://stackoverflow.com/questions/2525352/problem-of-using-cin-twice

of using cin twice Here is the code string str cin str cout..

c++ integer->std::string conversion. Simple function?

http://stackoverflow.com/questions/273908/c-integer-stdstring-conversion-simple-function

integer std string conversion. Simple function Problem I have an integer this integer needs to be converted to a stl..

Finding C++ static initialization order problems

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

destroyed when the application terminates. Multi Threaded Problem. C 11 does guarantee that this is thread safe. but C 03 does.. 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..

C++ Returning multidimension array from function

http://stackoverflow.com/questions/3716595/c-returning-multidimension-array-from-function

int 5 5 to int in return test.cpp Polky src line 73 C C Problem c pointers multidimensional array share improve this question..

Potential Problem in “Swapping values of two variables without using a third variable”

http://stackoverflow.com/questions/3741440/potential-problem-in-swapping-values-of-two-variables-without-using-a-third-var

Problem in &ldquo Swapping values of two variables without using a third..

Project Euler Problem 12 - C++

http://stackoverflow.com/questions/3808148/project-euler-problem-12-c

Euler Problem 12 C I'm working on problem 12 regarding the first triangle..

Problem with std::map::iterator after calling erase()

http://stackoverflow.com/questions/4636182/problem-with-stdmapiterator-after-calling-erase

with std map iterator after calling erase erasing from map..

Q_OBJECT throwing 'undefined reference to vtable' error [duplicate]

http://stackoverflow.com/questions/4774291/q-object-throwing-undefined-reference-to-vtable-error

question already has an answer here Qt Object Linker Problem &ldquo undefined reverence to vtable&rdquo 6 answers ..

C++0x has no semaphores? How to synchronize threads?

http://stackoverflow.com/questions/4792449/c0x-has-no-semaphores-how-to-synchronize-threads

thread1 ... event1.lock doSomethingth1 event1.unlock ... Problem It's ugly and it's not guaranteed that thread1 locks the mutex..

Is it a good idea to wrap an #include in a namespace block?

http://stackoverflow.com/questions/6670738/is-it-a-good-idea-to-wrap-an-include-in-a-namespace-block

from the common subset and uses that extern C thing . Problem is that header declares stuff in the global namespace. I'd rather..

Of Memory Management, Heap Corruption, and C++

http://stackoverflow.com/questions/7525/of-memory-management-heap-corruption-and-c

so it's something I've done or a bug but there's Not A Problem With Select . I'm sure I could chuck the code I've written up..

How do I write an ADL-enabled trailing return type, or noexcept specification?

http://stackoverflow.com/questions/7635939/how-do-i-write-an-adl-enabled-trailing-return-type-or-noexcept-specification

T y noexcept noexcept swap std declval T std declval T Problem is the swap in there needs to be the ADL discovered swap or..

#includes within a namespace, to “embed” prewritten stuff in namespace

http://stackoverflow.com/questions/14270435/includes-within-a-namespace-to-embed-prewritten-stuff-in-namespace

lib AG Wrapper Valid.hpp AG Wrapper Valid T foo_v ... PROBLEM the headers included are no longer freestanding. Everything..

How to write a variadic method which replaces chained method calls?

http://stackoverflow.com/questions/14934749/how-to-write-a-variadic-method-which-replaces-chained-method-calls

maps works fine. auto v gb.at k1 .at k2 .at k3 .get_vec PROBLEM I would like to create an alternative of at called at_variadic..

Xcode 3.2.1 and C++ string fails!

http://stackoverflow.com/questions/1603300/xcode-3-2-1-and-c-string-fails

option which does not exist in 3.2.1 the code runs with NO PROBLEM. Does anybody know what's going on Thanks Yuval c xcode share..

“Launch Failed. Binary Not Found.” Snow Leopard and Eclipse C/C++ IDE issue

http://stackoverflow.com/questions/1668447/launch-failed-binary-not-found-snow-leopard-and-eclipse-c-c-ide-issue

the project window on the left is simply nonexistent. THE PROBLEM is that GCC 4.2 the GNU Compiler Collection that comes with..

C++ - repeatedly using istringstream

http://stackoverflow.com/questions/2767298/c-repeatedly-using-istringstream

konverzi while getline file row separate.str row HERE is PROBLEM while getline separate strNum ' ' using delimiter flNum strToFl..

Creating a basic C++ .dll for p/invoke in C#

http://stackoverflow.com/questions/4679858/creating-a-basic-c-dll-for-p-invoke-in-c-sharp

in need of some help with what should be a trivial matter. PROBLEM I need assistance in packaging my C code into a .dll. I do not..

Again - parallax mapping issue in OpenGL, GLSL. It's not as usual as it seem to be

http://stackoverflow.com/questions/4750707/again-parallax-mapping-issue-in-opengl-glsl-its-not-as-usual-as-it-seem-to

IM SURE IT IS NOT A TANGENT VECTOR OR TEXTURE COORDINATES PROBLEM Because I used exactly the same tangent calculation functions..

Calling a java method from c++ in Android

http://stackoverflow.com/questions/5198105/calling-a-java-method-from-c-in-android

a java method from c in Android THE SOLUTION TO THIS PROBLEM IS IN THE BOTTOM OF THE QUESTION Hi. I'm trying to get a simple..

Linking cURL in Makefile

http://stackoverflow.com/questions/6601041/linking-curl-in-makefile

after installed cURL by source code. . Correction of the PROBLEM First I discovered that the l must come before the L and then..

Foreach macro on macros arguments

http://stackoverflow.com/questions/6707148/foreach-macro-on-macros-arguments

do #define PRINT a printf #a d a #define PRINT_ALL ... THE PROBLEM And possible usage int a 1 b 3 d 0 PRINT_ALL a b d Here is what..