msvc是否具有gcc的模拟({}) [英] does msvc have analog of gcc's ({ })
问题描述
msvc是否具有gcc的模拟({})。
我假设答案是否定的。
请注意,这是编译器功能,而不是味道或风格的问题。
不是我推荐任何人通过这个问题开始使用({})构造。
到({})的结构是: http://gcc.gnu .org / onlinedocs / gcc-2.95.3 / gcc_4.html#SEC62 正式名为表达式中的语句和声明。它允许将语句(如for,goto)和声明嵌入到表达式中。
不,它不包含等效的表单。
Does msvc have analog of gcc's ({ }).
I assume the answer is no.
Plase note that this is question of compiler capabilities, not question of taste or style.
Not that I recommend anybody to start using the ({}) construct by ths question.
The reference to ({}) construct is: http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC62 officially called "Statements and Declarations in Expressions". It allows to embed statements (like for, goto) and declarations into expressions.
No, it does not contain an equivalent form.
这篇关于msvc是否具有gcc的模拟({})的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!