msvc是否具有gcc的模拟({}) [英] does msvc have analog of gcc's ({ })

查看:127
本文介绍了msvc是否具有gcc的模拟({})的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

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