Skip to content

examples:HelloWorld.cpp compile error #1061

Answered by ddevienne
zhlongfj asked this question in Q&A
Discussion options

You must be logged in to vote

Using the { .field = ... } notation is a C++20 feature, not C++17...

If you could please stick to pure C++17 (which I'm just about to be able to use at work...),
that would be great Alex. My $0.02... --DD

PS: See https://en.cppreference.com/w/cpp/language/aggregate_initialization
PPS: C++20 is not even officially out yet.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1061 on December 09, 2020 02:36.