title: What is the recommended way to organize platform specific code in C++?
body: <p>If I want to write my C++ application for multiple platforms, e.g. Windows and Linux, what is the recommended way of writing the platform code? What pattern, class hierarchy etc. exists to accomplish this task? How should I organize my code, header and source files?</p>