有C ++ 11到C ++ 03转换器吗? [英] Is there a C++11 to C++03 converter?

查看:90
本文介绍了有C ++ 11到C ++ 03转换器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有这样的工具,能够将使用一些C ++ 11功能的代码转换为C ++ 03兼容的代码(可能使用一些第三方库,如Boost)?

Is there such a tool that is able to convert a code that uses some C++11 features to C++03 compatible code (perhaps using some third party libraries like Boost)?

推荐答案

因为没有人回答了实际的答案,答案是否。只是升级你的工具链。有很多好的理由这样做。

Because nobody has answered with an actual answer, the answer is "No". Just upgrade your toolchain. There are a lot of good reasons to do that anyway.

对于Ubuntu和其他Linux版本,你甚至可以下载包的源代码形式,并为您的古代系统如果你想在一个非常老的系统上使用一个新的工具链。当然,如果你用这个程序运行程序,你必须链接 libstdc ++ 静态或与你的程序一起运送共享库。

For Ubuntu and other Linux variants, you can even download the package in source form and compile it for your ancient system if you want to use a new toolchain on a very old system. Of course, if you then ship programs with this you will have to link libstdc++ statically or ship the shared library along with your program.

这是非常不可能的任何人都会写一个转换器,因为它很容易只是升级你的工具链。这将是一个有趣(而且相当复杂)的爱好项目。也许有人会有一天写一个C ++ 11编译器比编译到C99。 :-)这可能会更容易一些。

It's highly unlikely that anybody would ever write a converter since it's so easy to just upgrade your toolchain. It would be an interesting (and rather complex) hobby project. Maybe someone will someday write a C++11 compiler than compiles to C99. :-) That would probably be a whole lot easier.

这篇关于有C ++ 11到C ++ 03转换器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆