c++ Programming Glossary: legacy
What's “wrong” with C++ wchar_t and wstrings? What are some alternatives to wide characters? http://stackoverflow.com/questions/11107608/whats-wrong-with-c-wchar-t-and-wstrings-what-are-some-alternatives-to-wide is for migrating ancient Windows programs that assume legacy encodings from char to wchar_t and is best forgotten unless..
Why can't you use offsetof on non-POD strucutures in C++? http://stackoverflow.com/questions/1129894/why-cant-you-use-offsetof-on-non-pod-strucutures-in-c offsetof is a feature that is only in the C standard for legacy C compatibility. Therefore it is basically restricted to the..
GCC problem : using a member of a base class that depends on a template argument http://stackoverflow.com/questions/11405/gcc-problem-using-a-member-of-a-base-class-that-depends-on-a-template-argument
Static variables initialisation order http://stackoverflow.com/questions/211237/static-variables-initialisation-order is just to understand the problems that we may have with legacy code when moving to new GCC major and different OS c visual..
Dead code detection in legacy C/C++ project http://stackoverflow.com/questions/229069/dead-code-detection-in-legacy-c-c-project code detection in legacy C C project How would you go about dead code detection in C.. process handle that c automation static analysis legacy code dead code share improve this question You could use..
C++/CLI Mixed Mode DLL Creation http://stackoverflow.com/questions/2691325/c-cli-mixed-mode-dll-creation to be mix mode until you tell the C CLI compiler that your legacy DLL was written in unmanaged code. Which should have been noticeable..
Mixing Objective-C and C++ http://stackoverflow.com/questions/2710507/mixing-objective-c-and-c I use a lot of std containers std vector std queue etc and legacy C code in iPhone projects without any complications. share..
C++ catching all exceptions http://stackoverflow.com/questions/315948/c-catching-all-exceptions mechanism but if you don't have the ability to use c 11 legacy code systems requiring a rewrite then you have no named exception..
Combining C++ and C - how does #ifdef __cplusplus work? http://stackoverflow.com/questions/3789340/combining-c-and-c-how-does-ifdef-cplusplus-work work I'm working on a project that has a lot of legacy C code. We've started writing in C with the intent to eventually.. writing in C with the intent to eventually convert the legacy code as well. I'm a little confused about how the C and C interact...
What is the use of “delete this”? http://stackoverflow.com/questions/447379/what-is-the-use-of-delete-this use of &ldquo delete this&rdquo Today I have seen some legacy code. In the destructor there is a statement like delete this..
How do I use arrays in C++? http://stackoverflow.com/questions/4810664/how-do-i-use-arrays-in-c quite as often as it does in C. However when you read legacy code or interact with a library written in C you should have..
How can I know which parts in the code are never used? http://stackoverflow.com/questions/4813947/how-can-i-know-which-parts-in-the-code-are-never-used can I know which parts in the code are never used I have legacy C code that I'm supposed to remove unused code from. The problem..
Is there any reason to check for a NULL pointer before deleting? http://stackoverflow.com/questions/615355/is-there-any-reason-to-check-for-a-null-pointer-before-deleting to check for a NULL pointer before deleting I see some legacy code checking for null before deleting the pointer. as like..
What is std::string::c_str() lifetime? http://stackoverflow.com/questions/6456359/what-is-stdstringc-str-lifetime In one of my programs I have to interface with some legacy code that works with const char . Lets say I have a structure..
Unit testing for C++ code - Tools and methodology http://stackoverflow.com/questions/91384/unit-testing-for-c-code-tools-and-methodology share improve this question Applying unit tests to legacy code was the very reason Working Effectively with Legacy Code..
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 compiler that's the only thing that will compile your legacy doesn't choke Since specializations are impossible template..
Can this macro be converted to a function? http://stackoverflow.com/questions/95500/can-this-macro-be-converted-to-a-function template OK ARRAYSIZE would be a better name but this is legacy code no idea where it came from it's at least 15 years old so..
Unnecessary curly braces in C++? http://stackoverflow.com/questions/9704083/unnecessary-curly-braces-in-c The environment is embedded devices. There is a lot of legacy C code wrapped in C clothing. There are a lot of C turned C..
How to deal with math.h pollution in Visual Studio C++? http://stackoverflow.com/questions/12443595/how-to-deal-with-math-h-pollution-in-visual-studio-c identifiers because they're already declared in math.h. Legacy issues makes it inconvenient for me to rename the identifiers..
How to call a C# library from C++ using C++\CLI and IJW http://stackoverflow.com/questions/13293888/how-to-call-a-c-sharp-library-from-c-using-c-cli-and-ijw and are often easier on the eyes Managers tell us too. Legacy code forces us too. It was there Like the mountain that we climbed..
How can a C++ base class determine at runtime if a method has been overridden? http://stackoverflow.com/questions/1801949/how-can-a-c-base-class-determine-at-runtime-if-a-method-has-been-overridden virtual void do_method call_legacy_method_instead struct Legacy Base struct NonLegacy Base private virtual void do_method my_own_thing.. call_legacy_method_instead struct Legacy Base struct NonLegacy Base private virtual void do_method my_own_thing Now any derived.. is private because derived classes must not call it. NonLegacy may make it protected or public as appropriate but defaulting..
Advice on Mocking System Calls http://stackoverflow.com/questions/2924440/advice-on-mocking-system-calls Michael Feathers describes in Working Effectively with Legacy Code . The basic idea is to leverage the linker and your build..
How to set up unit testing for Visual Studio C++ http://stackoverflow.com/questions/3150/how-to-set-up-unit-testing-for-visual-studio-c . I'm paraphrasing from Feather's Working Effectively with Legacy Code book . CPPUnitLite2 seems to be another rewrite with more..
PAM Authentication for a Legacy Application http://stackoverflow.com/questions/5913865/pam-authentication-for-a-legacy-application Authentication for a Legacy Application I have a legacy app that receives a username password..
Convert char array to single int? http://stackoverflow.com/questions/6093414/convert-char-array-to-single-int ways of converting a string to an int. Solution 1 Using Legacy C functionality int main char hello 5 hello 12345 This wont..
Should I use an exception specifier in C++? http://stackoverflow.com/questions/88573/should-i-use-an-exception-specifier-in-c is really what you mean when you write virtual functions. Legacy code When you write code which relies on another library you..
Unit testing for C++ code - Tools and methodology http://stackoverflow.com/questions/91384/unit-testing-for-c-code-tools-and-methodology legacy code was the very reason Working Effectively with Legacy Code was written. Michael Feathers is the author as mentioned..
|