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

Listing 4-38 parentheses vs brackets #18

Closed
kwadsten opened this issue Oct 1, 2019 · 1 comment
Closed

Listing 4-38 parentheses vs brackets #18

kwadsten opened this issue Oct 1, 2019 · 1 comment

Comments

@kwadsten
Copy link

@kwadsten kwadsten commented Oct 1, 2019

Hi, in example 4-38 the move constructor uses ( ) for initialization instead of { } that the copy constructor uses. Is this intentional? I thought { } style was recommended.

JLospinoso added a commit that referenced this issue Oct 1, 2019
@JLospinoso
Copy link
Owner

@JLospinoso JLospinoso commented Oct 1, 2019

Hi @kwadsten, you're right! That's a typo. It's correct in Listing 4-35. I've added this to the errata.

"We're sorry for the inconvenience." 😂

@JLospinoso JLospinoso closed this Oct 1, 2019
kruschk pushed a commit to kruschk/ccc that referenced this issue Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants