Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #58: Constructs struct with protected ctor with () rather than {} #59

Closed
wants to merge 1 commit into from

Conversation

trevorknight
Copy link
Contributor

The base class of the struct has a protected constructor so this commit uses parens instead of brackets for regular construction in both C++14 and 17, rather than aggregate construction in 17. See the following for details.

https://stackoverflow.com/questions/56367480/should-this-code-fail-to-compile-in-c17

For issue #58

The base class of the struct has a protected constructor so
this commit uses parens instead of brackets for regular
construction in both C++14 and 17, rather than aggregate
construction in 17.  See the following for details.

https://stackoverflow.com/questions/56367480/should-this-code-fail-to-compile-in-c17
@tomjnixon
Copy link
Member

thanks, merged in 8f6c176

@tomjnixon tomjnixon closed this Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants