Skip to content

correct List init in Stack.h#2

Open
Fritz-D wants to merge 1 commit into
mainfrom
list-init-fix
Open

correct List init in Stack.h#2
Fritz-D wants to merge 1 commit into
mainfrom
list-init-fix

Conversation

@Fritz-D

@Fritz-D Fritz-D commented Jun 11, 2025

Copy link
Copy Markdown

List is a Plain Old Data struct and hence has no constructors -> aggregate initialization via {} is required.
deep_copy_list is never called as is but is useful for Stacks, where the initialization issue caused some confusion among students.

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.

1 participant