What you will get is completely platform-dependent. The only proper solution is using something like clang to write a C++->D converter. First only headers, later source code.