Skip to content

Add inline bool dm::isValidId(int id) #6

Open
@mrts

Description

@mrts

People are confused whether to use -1 or 0 for invalid ID. Better to solve the problem once and for all by

namespace dm
{
const int INVALID_ID = -1;
inline bool isValidId(int id) { return id > 0; }
}

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