mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
usertype destructor needs to be of the right type for non-const values
This commit is contained in:
parent
72b9d91c14
commit
015ef6a37a
|
@ -191,7 +191,7 @@ namespace sol {
|
||||||
return &detail::unique_destruct<T>;
|
return &detail::unique_destruct<T>;
|
||||||
}
|
}
|
||||||
else if constexpr (!std::is_pointer_v<T>) {
|
else if constexpr (!std::is_pointer_v<T>) {
|
||||||
return &detail::unique_destruct<T>;
|
return &detail::usertype_alloc_destruct<T>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user