这是indexloc提供的服务,不要输入任何密码
Skip to content

static const data members don't have any definition #5

@Cryolite

Description

@Cryolite

Static const data members should be defined.

In nanahan::Map class template, the following static data members are declared;

static const size_t INITIAL_SIZE = 8;
static const size_t SLOTSIZE = sizeof(Slot) * 8;
static const size_t HOP_RANGE = SLOTSIZE * 8;

However, corresponding definitions are missing. Although they are not used (odr-used), it is not guaranteed that non-used variables make their definitions not necessary. Therefore, it would be best to adopt a conservative but simple "providing-the-definition-for-all-declarations" rule.

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