Skip to content

[With example] Make copy constructible #147

@Spixmaster

Description

@Spixmaster

Source:

std::unordered_map<boost::safe_numerics::safe<std::int32_t>, std::string> tmp;

Result:

/home/matheus/programmieren/c++/argo/src/database/User.cpp:508:87:   required from here
  508 |             std::unordered_map<boost::safe_numerics::safe<std::int32_t>, std::string> tmp;
      |                                                                                       ^~~
/usr/include/c++/15.2.1/bits/hashtable.h:210:51: Fehler: statische Assertion fehlgeschlagen: hash function must be copy constructible
  210 |       static_assert(is_copy_constructible<_Hash>::value,
      |                                                   ^~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions