Skip to content

const virtual functions get unconsted #313

@adetaylor

Description

@adetaylor
#include <cstdint>
class A {
public:
    virtual uint32_t get_val() const { return 3; };
};

calling that virtual function requires &mut A not &A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas-test-caseTest case written and checked in

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions