c++ Programming Glossary: deprecated
How do I get the directory that a program is running from? http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from interface to the OS. On windows getcwd function has been deprecated in favour of _getcwd. I think you could use it in this fashion...
C++ deprecated conversion from string constant to 'char*' http://stackoverflow.com/questions/1524356/c-deprecated-conversion-from-string-constant-to-char deprecated conversion from string constant to 'char ' I have a class with.. example When I compile this I get the following warning deprecated conversion from string constant to 'char ' Why is this happening..
Unnamed/anonymous namespaces vs. static functions http://stackoverflow.com/questions/154469/unnamed-anonymous-namespaces-vs-static-functions namespaces paragraph 2 The use of the static keyword is deprecated when declaring objects in a namespace scope the unnamed namespace..
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 originally a redeclaration of inherited method s currently deprecated now an explicit use of using declaration. As you correctly observed..
Undefined, unspecified and implementation-defined behavior http://stackoverflow.com/questions/2397984/undefined-unspecified-and-implementation-defined-behavior #include iostream int main char p hello n yes I know deprecated conversion p 0 'y' p 5 'w' std cout p The variable p points..
C/C++: Capture characters from standard input without waiting for enter to be pressed http://stackoverflow.com/questions/421860/c-c-capture-characters-from-standard-input-without-waiting-for-enter-to-be-pr See conio.h at wikipedia. It lists getch which is declared deprecated in Visual C . curses available for linux compatible curses implementations..
Superiority of unnamed namespace over static? http://stackoverflow.com/questions/4422507/superiority-of-unnamed-namespace-over-static 2 from the C Standard The use of the static keyword is deprecated when declaring objects in a namespace scope the unnamed namespace.. to static . Also note that use of static keyword is deprecated when declaring objects in a namespace scope as per the Standard..
What C++ Smart Pointer Implementations are available? http://stackoverflow.com/questions/5026197/what-c-smart-pointer-implementations-are-available The final blow to any use case is they are slated to be deprecated in the next standard of C . std auto_ptr_ref This is not a smart.. in multi threaded environments. Qt people consider this deprecated I believe. QSharedDataPointer This is a strong smart pointer..
How to convert a number to string and vice versa in C++ http://stackoverflow.com/questions/5290089/how-to-convert-a-number-to-string-and-vice-versa-in-c std ostringstream with std ostrstream . The latter is deprecated Use boost lexical cast . If you are not familiar with boost.. not confuse istringstream with istrstream . The latter is deprecated. #include sstream #include string int main std string inputString..
smart pointers (boost) explained http://stackoverflow.com/questions/569775/smart-pointers-boost-explained of the key features of move semantics. auto_ptr will be deprecated in the next C Standard release in favor of unique_ptr. C 1x..
Accessing inherited variable from templated parent class http://stackoverflow.com/questions/605497/accessing-inherited-variable-from-templated-parent-class your code but allowing the use of an undeclared name is deprecated when I try to use it in a member function of Bar. I find that..
What does it mean to have an undefined reference to a static member? http://stackoverflow.com/questions/7092765/what-does-it-mean-to-have-an-undefined-reference-to-a-static-member objects or functions with internal linkage . This usage is deprecated for objects as the unnamed namespace provides a better alternative...
Which kind of pointer do I use when? http://stackoverflow.com/questions/8706192/which-kind-of-pointer-do-i-use-when Note that std auto_ptr is still in the standard but it is deprecated . §D.10 depr.auto.ptr The class template auto_ptr is deprecated... . §D.10 depr.auto.ptr The class template auto_ptr is deprecated. Note The class template unique_ptr 20.7.1 provides a better..
Why does the use of 'new' cause memory leaks? http://stackoverflow.com/questions/8839943/why-does-the-use-of-new-cause-memory-leaks also an old one pre C 11 named auto_ptr but it's now deprecated because it has a strange copying behaviour. And then there are..
|