¡@

Home 

c++ Programming Glossary: surprises

Switching from std::string to std::wstring for embedded applications?

http://stackoverflow.com/questions/163962/switching-from-stdstring-to-stdwstring-for-embedded-applications

command line interface CLI . What complications headaches surprises should I expect What for example if I use a third party library..

What's the difference between a derived object and a base object in c++?

http://stackoverflow.com/questions/1697020/whats-the-difference-between-a-derived-object-and-a-base-object-in-c

C++: do you (really) write exception safe code? [closed]

http://stackoverflow.com/questions/1853243/c-do-you-really-write-exception-safe-code

revert back to C and avoid C libraries as well as external surprises like Windows SEH . Writing exception safe code To write exception..

Size of character ('a') in C/C++

http://stackoverflow.com/questions/2172943/size-of-character-a-in-c-c

int main std cout Size of char sizeof char n return 0 No surprises both of them gives the output Size of char 1 Now we know that..

Remove comments from C/C++ code

http://stackoverflow.com/questions/2394017/remove-comments-from-c-c-code

have to write this myself with regexes I foresee too many surprises in the code. c c comments share improve this question Thanks..

Who architected / designed C++'s IOStreams, and would it still be considered well-designed by today's standards?

http://stackoverflow.com/questions/2753060/who-architected-designed-cs-iostreams-and-would-it-still-be-considered-wel

about some design decisions that went into the STL. What surprises me in particular It seems to be unknown who was responsible..

How to address thread-safety of service data used for maintaining static local variables in C++?

http://stackoverflow.com/questions/2955797/how-to-address-thread-safety-of-service-data-used-for-maintaining-static-local-v

is worth a read in this regard. Personally to avoid surprises I'd try to rewrite this so you can initialize variable yourself..

Why is there no parameter contra-variance for overriding?

http://stackoverflow.com/questions/2995926/why-is-there-no-parameter-contra-variance-for-overriding

it is not feasible but because there would be quirks and surprises in code and considering that there are simple work arounds if..

Coroutine demo source

http://stackoverflow.com/questions/3330838/coroutine-demo-source

I can say is that gcc producing large executables never surprises me. Using MS VC I get an executable of 9 728 bytes for the code..

Calling base method from derived class

http://stackoverflow.com/questions/3980011/calling-base-method-from-derived-class

of overriding it which is surely going to cause some nasty surprises in the long run. So you may want to change your declaration..

Regex Replacing : to “:” etc

http://stackoverflow.com/questions/428013/regex-replacing-58-to-etc

# . Finally the regex solution is one without a lot of surprises for future maintainers. I'd say a regex was the right choice...

C++: rationale behind hiding rule

http://stackoverflow.com/questions/4837399/c-rationale-behind-hiding-rule

that probably the hiding actually increases the amount of surprises in C programmers. A detailed discussion about this issue can..

Why doesn't std::string provide implicit conversion to char*?

http://stackoverflow.com/questions/492061/why-doesnt-stdstring-provide-implicit-conversion-to-char

the convenience of an implicit conversion at the cost of surprises in cases in which such a conversion was unexpected . share..

“using namespace” in c++ headers

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

behind the question is the same as above I don't want surprises when including .h files. Also if I am right is this a common..

Compilers and argument order of evaluation in C++

http://stackoverflow.com/questions/621542/compilers-and-argument-order-of-evaluation-in-c

do take into account the calling conventions to skip surprises. There is a nice article on Raymond Chen' blog if you are interested...

dynamic_cast of “this” inside constructor

http://stackoverflow.com/questions/6299266/dynamic-cast-of-this-inside-constructor

So the dynamic_cast does work for multiple inheritance no surprises there but why not when called at runtime for the 'this' pointer..

Speed of accessing local vs. global variables in gcc/g++ at different optimization levels

http://stackoverflow.com/questions/7241035/speed-of-accessing-local-vs-global-variables-in-gcc-g-at-different-optimizati

faster more than 50 or 1.5 times . As remarked before this surprises me because I would think that for gcc it would be as easy as..

Is there any real risk to deriving from the C++ STL containers?

http://stackoverflow.com/questions/922248/is-there-any-real-risk-to-deriving-from-the-c-stl-containers

mistake ever to use a standard C container as a base class surprises me. If it is no abuse of the language to declare ... Example..