V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hardyfish
V2EX  ›  C++

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

  •  
  •   hardyfish · Jan 21, 2021 · 3943 views
    This topic created in 1923 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
    linux40
        1
    linux40  
       Jan 21, 2021   ❤️ 1
    hardyfish
        3
    hardyfish  
    OP
       Jan 21, 2021
    @linux40 谢谢,看来只能升级 vc2019 了
    codehz
        4
    codehz  
       Jan 21, 2021
    msvc 2019 是支持的
    yujincheng08
        5
    yujincheng08  
       Jan 21, 2021
    Designated initializers
    hackpro
        6
    hackpro  
       Jan 21, 2021
    出现在结构体中吧
    stevefan1999
        7
    stevefan1999  
       Jan 21, 2021
    gnu89/c99 的 designated initializer...
    buzailianxi
        8
    buzailianxi  
       Jan 22, 2021
    c 结构体早就可以这么搞
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3187 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 14:29 · PVG 22:29 · LAX 07:29 · JFK 10:29
    ♥ Do have faith in what you're doing.