¡@

Home 

c++ Programming Glossary: dangerous

In C++, why use static_cast<int>(x) instead of (int)x?

http://stackoverflow.com/questions/103512/in-c-why-use-static-castintx-instead-of-intx

or a const_cast on the other hand is always dangerous. You tell the compiler trust me I know this doesn't look like.. That means that not only are C style casts more dangerous but it's a lot harder to find them all to make sure that they..

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

like a scoped pointer except that it also has the special dangerous ability to be copied which also unexpectedly transfers ownership..

Which I/O library do you use in your C++ code? [closed]

http://stackoverflow.com/questions/119098/which-i-o-library-do-you-use-in-your-c-code

the format style have explicit safeguards to prevent the dangerous side effects of the C stdio library that can in C but not the..

throwing exceptions out of a destructor

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

question Throwing an exception out of a destructor is dangerous. If another exception is already propagating the application.. print this std endl This basically boils down to Anything dangerous i.e. that could throw an exception should be done via public..

Why does an overridden function in the derived class hide other overloads of the base class?

http://stackoverflow.com/questions/1628768/why-does-an-overridden-function-in-the-derived-class-hide-other-overloads-of-the

avoid certain counterintuitive unforeseen and potentially dangerous behavior that might take place if the inherited set of overloaded..

Why use pointers? [closed]

http://stackoverflow.com/questions/162941/why-use-pointers

0 were found. And this is where things start to get dangerous. What if you accidentally try and print a variable of the type..

Undefined, unspecified and implementation-defined behavior

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

the C standard also mentions undefined behavior's two less dangerous brothers unspecified behavior and implementation defined behavior..

When should static_cast, dynamic_cast and reinterpret_cast be used?

http://stackoverflow.com/questions/332030/when-should-static-cast-dynamic-cast-and-reinterpret-cast-be-used

of inheritance are rare. reinterpret_cast is the most dangerous cast and should be used very sparingly. It turns one type directly.. for other casts in some instances but can be extremely dangerous because of the ability to devolve into a reinterpret_cast and..

What is The Rule of Three?

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

const person that if this that delete name This is a dangerous point in the flow of execution We have temporarily invalidated..

What are Aggregates and PODs and how/why are they special?

http://stackoverflow.com/questions/4178175/what-are-aggregates-and-pods-and-how-why-are-they-special

in C to even consider using unions their use may be very dangerous and must be thought of carefully you could look up the rules..

How do I use arrays in C++?

http://stackoverflow.com/questions/4810664/how-do-i-use-arrays-in-c

usage of new and delete as demonstrated below is extremely dangerous in the face of exceptions but that is the topic of another FAQ..

“using namespace” in c++ headers

http://stackoverflow.com/questions/5849457/using-namespace-in-c-headers

the #include s in their .h files. This seems to me to be dangerous since then by including that header in another program I will.. to undo a using namespace which is another reason it's so dangerous. I typically just use grep or the like to make sure that using..

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

to the fact that you are probably doing something dangerous that could be breaking the rules. For further reading What if..

Calling virtual functions inside constructors

http://stackoverflow.com/questions/962132/calling-virtual-functions-inside-constructors

virtual functions from a constructor or destructor is dangerous and should be avoided whenever possible. All C implementations..