Cannot use std::hash_map
and std::hash_set
with recursive types
#127
Labels
std::hash_map
and std::hash_set
with recursive types
#127
std::hash_map
std::hash_set
Additional Notes
Attempting to box the templated type using a pointer also does not work:
In order to hold the data, a boxed
any
must be used to "smuggle" the heap allocated struct:The discovery of this issue, and an example of this smuggling in action, comes from an initial draft of a data interchange format library called bubby: https://github.com/ashn-dot-dev/bubby/blob/4f1f6f0f605b8ba7f6d18fa1c0945460576fabab/bubby.sunder#L22C1-L23C50
The text was updated successfully, but these errors were encountered: