¡@

Home 

c++ Programming Glossary: evil

How to prevent an object being created on the heap?

http://stackoverflow.com/questions/10985/how-to-prevent-an-object-being-created-on-the-heap

magic to HELP prevent this but it would not be immune to evil users and thus is probably not worth the complication. Documentation..

Reason why not to have a DELETE macro for c++

http://stackoverflow.com/questions/1265666/reason-why-not-to-have-a-delete-macro-for-c

macro for c Are there any good reasons except macros are evil maybe NOT to use the following macros #define DELETE ptr if..

How much faster is C++ than C#?

http://stackoverflow.com/questions/138361/how-much-faster-is-c-than-c

Knuth said premature optimization is the root of all evil . If you really know for sure that your application will mostly..

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

How to implement serialization in C++

http://stackoverflow.com/questions/1809670/how-to-implement-serialization-in-c

I've heard that this kind of switching over class IDs is evil and an antipattern what's the standard OO way of handling serialization..

How to implement the factory pattern in C++ correctly

http://stackoverflow.com/questions/5120768/how-to-implement-the-factory-pattern-in-c-correctly

see Is the practice of returning a C reference variable evil for example. So pointers are the only thing that's left and..

Polymorphism in c++

http://stackoverflow.com/questions/5854581/polymorphism-in-c

and other unique capabilities of macros which remain evil templates and macros test semantic usage is supported but don't..

Conversion function for error checking considered good?

http://stackoverflow.com/questions/6242296/conversion-function-for-error-checking-considered-good

In C 03 you need to use the safe bool idiom to avoid evil things int x my_object this works In C 11 you can use an explicit..

how do I print an unsigned char as hex in c++ using ostream?

http://stackoverflow.com/questions/673240/how-do-i-print-an-unsigned-char-as-hex-in-c-using-ostream

Difference between try-catch syntax for function

http://stackoverflow.com/questions/6756931/difference-between-try-catch-syntax-for-function

and even if there were something to detect because of evil code the handler is not very useful for doing anything about..

Will using `goto` leak variables?

http://stackoverflow.com/questions/7334952/will-using-goto-leak-variables

given problem but it does mean that it is not nearly as evil as the common myth leads people to believe. share improve this..

Is the practice of returning a C++ reference variable, evil?

http://stackoverflow.com/questions/752658/is-the-practice-of-returning-a-c-reference-variable-evil

the practice of returning a C reference variable evil This is a little subjective I think I'm not sure if the opinion.. initializing references returning a reference can be evil because as I understand it makes it easier to miss deleting.. this in a fair few places... Have I misunderstood Is it evil If so just how evil I feel that because of my mixed bag of pointers..

What happens to global variables declared in a DLL?

http://stackoverflow.com/questions/75701/what-happens-to-global-variables-declared-in-a-dll

three problems 0 Of course global non const objects are evil but you already know that so I'll avoid mentionning multithreading..

Position of least significant bit that is set

http://stackoverflow.com/questions/757059/position-of-least-significant-bit-that-is-set

such things not for people to tell me xyzoptimization is evil. edit Thanks everyone for the ideas I've learnt a few other..

Move assignment operator and `if (this != &rhs)`

http://stackoverflow.com/questions/9322174/move-assignment-operator-and-if-this-rhs

argue that swap x x is a good idea or just a necessary evil. And this if the swap goes to the default swap can cause a self..