在链式编程看到的,自己放到 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
1
linux40 2021-01-21 18:19:17 +08:00 1
|
2
shylockhg 2021-01-21 18:20:26 +08:00
|
4
codehz 2021-01-21 18:31:42 +08:00
msvc 2019 是支持的
|
5
yujincheng08 2021-01-21 18:41:47 +08:00
Designated initializers
|
6
hackpro 2021-01-21 19:01:47 +08:00
出现在结构体中吧
|
7
stevefan1999 2021-01-21 21:49:48 +08:00
gnu89/c99 的 designated initializer...
|
8
buzailianxi 2021-01-22 10:40:13 +08:00
c 结构体早就可以这么搞
|