hardyfish
V2EX  ›  C++

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

  •  
  •   hardyfish · Jan 21, 2021 · 4473 views
    This topic created in 2114 days ago, the information mentioned may be changed or developed.

    在链式编程看到的,自己放到 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 replies  •  2021-01-22 10:40:13 +08:00
    hardyfish
    hardyfish
    OP
    Jan 21, 2021
    3
    @linux40 谢谢,看来只能升级 vc2019 了
    codehz
    codehz
    Jan 21, 2021
    4
    msvc 2019 是支持的
    yujincheng08
    yujincheng08
    Jan 21, 2021
    5
    Designated initializers
    hackpro
    hackpro
    Jan 21, 2021
    6
    出现在结构体中吧
    stevefan1999
    stevefan1999
    Jan 21, 2021
    7
    gnu89/c99 的 designated initializer...
    buzailianxi
    buzailianxi
    Jan 22, 2021
    8
    c 结构体早就可以这么搞
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3027 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 148ms · UTC 11:06 · PVG 19:06 · LAX 03:06 · JFK 06:06
    ♥ Do have faith in what you're doing.