mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Always unqualify / decay arguments
This commit is contained in:
parent
5704317449
commit
f45ecdcff4
|
@ -94,7 +94,7 @@ const destructor_wrapper<void> default_destructor{};
|
|||
|
||||
template <typename Fx>
|
||||
inline destructor_wrapper<Fx> destructor(Fx&& fx) {
|
||||
return destructor_wrapper<Fx>(std::forward<Fx>(fx));
|
||||
return destructor_wrapper<std::decay_t<Fx>>(std::forward<Fx>(fx));
|
||||
}
|
||||
|
||||
} // sol
|
||||
|
|
Loading…
Reference in New Issue
Block a user