C ++ 11模式或emacs的设置? [英] C++11 mode or settings for emacs?

查看:128
本文介绍了C ++ 11模式或emacs的设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Emacs 23.3.1(Ubuntu,Oneiric包),并且emacs看起来不了解任何新的C ++ 11关键字constexpr,thread_local等。也不明白' >'现在允许在模板参数或新的'枚举类'语法。在某处有更新或替代模块吗?

解决方案

我已经检查过中继线版本, cc-mode 尚未更新,AFAIK没有其他选择。如果你真的想要它,但不想弄脏你的手,你应该付钱给你实现它... ...


I'm running Emacs 23.3.1 (Ubuntu, Oneiric package) and emacs doesn't appear to understand any of the new C++11 keywords, constexpr, thread_local, etc. Also it doesn't understand that '>>' is now permitted in template parameters, or the new 'enum class' syntax. Is there an updated or alternative module somewhere? Or failing that, some settings to make emacs more C++11 friendly in the mean time?

解决方案

I've checked trunk version, cc-mode hasn't been updated yet, and AFAIK there's no alternative. If you really want it, but don't want to get your hands dirty, you should pay someone to implement it for you...

这篇关于C ++ 11模式或emacs的设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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