Skip to content

T.84 Example code error  #2231

Open
Open
@tktj12

Description

@tktj12

The implementation of List::front() is wrong.
I think it should be
T& front() { return static_cast<Link<T>*>(first)->val; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions