Skip to content

Removing const from params that aren't pointer or reference #6

Closed
@dgobbi

Description

@dgobbi

When a parameter has a type like const int, the const can be stripped since it only applies to the use of the parameter within the body of the function.

I.e. the one definition rule only allows one of these to be defined, since they are equivalent:

int func(const int x);
int func(int x);

In the WrapVTK xml output, each unique function should be uniquely represented, and func(int x) is the preferred representation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions