dice-group / dice-hash

https://dice-group.github.io/dice-hash/
GNU Affero General Public License v3.0
2 stars 1 forks source link

add support for std::variant #9

Closed bigerl closed 3 years ago

LukasKerk commented 3 years ago

How should value_less be treated?

bigerl commented 3 years ago

https://en.cppreference.com/w/cpp/utility/variant :

Empty variants are also ill-formed (std::variant<std::monostate> can be used instead).

std::variant<std::monostate> should map to a default value.

The default value should probably be a/the seed.