V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hardyfish
V2EX  ›  C++

C++ 这种语法没见过 叫什么 ?

  •  
  •   hardyfish · 2021-01-21 18:16:36 +08:00 · 2919 次点击
    这是一个创建于 1161 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在链式编程看到的,自己放到 vc2017,编译不过去。 https://github.com/uNetworking/uWebSockets

    uWS::SSLApp({ .key_file_name = "../misc/key.pem", .cert_file_name = "../misc/cert.pem", .passphrase = "1234" })

    提示语法错误 Error C2059 syntax error: '{' ConsoleApplication2 i:\temp\consoleapplication2\consoleapplication2\consoleapplication2.cpp 17

    8 条回复    2021-01-22 10:40:13 +08:00
    linux40
        1
    linux40  
       2021-01-21 18:19:17 +08:00   ❤️ 1
    hardyfish
        3
    hardyfish  
    OP
       2021-01-21 18:31:16 +08:00
    @linux40 谢谢,看来只能升级 vc2019 了
    codehz
        4
    codehz  
       2021-01-21 18:31:42 +08:00
    msvc 2019 是支持的
    yujincheng08
        5
    yujincheng08  
       2021-01-21 18:41:47 +08:00
    Designated initializers
    hackpro
        6
    hackpro  
       2021-01-21 19:01:47 +08:00
    出现在结构体中吧
    stevefan1999
        7
    stevefan1999  
       2021-01-21 21:49:48 +08:00
    gnu89/c99 的 designated initializer...
    buzailianxi
        8
    buzailianxi  
       2021-01-22 10:40:13 +08:00
    c 结构体早就可以这么搞
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5487 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:01 · PVG 17:01 · LAX 02:01 · JFK 05:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.