什么是C ++内联类? [英] What's the c++ inline class?
本文介绍了什么是C ++内联类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我偶然发现Clang编译器允许:
I accidentally found that the Clang compiler allows :
inline class AAA
{
};
在C ++中。
这是什么?
in C++. What's this?
PS。我将此报告给Clang邮件列表 cfe-dev@cs.uiuc.edu
,现在正在等待答复。
PS. I reported this to Clang mailing list cfe-dev@cs.uiuc.edu
, and now waiting for reply. I'll update this question by I'm informed.
推荐答案
我从Clang邮件列表中得到了答案。这是一个错误:
http://llvm.org/bugs/show_bug .cgi?id = 3941
I got an answer from Clang mailing list. It was a bug: http://llvm.org/bugs/show_bug.cgi?id=3941
但是,它在最近的版本中已经得到修复。
无论如何还是要谢谢:)
However it looks already been fixed in recent build. Thanks anyway :)
这里是对话:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-March/014207.html
这篇关于什么是C ++内联类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文