Always unqualify / decay arguments

This commit is contained in:
ThePhD 2016-06-18 03:45:03 -04:00
parent 5704317449
commit f45ecdcff4

View File

@ -94,7 +94,7 @@ const destructor_wrapper<void> default_destructor{};
template <typename Fx> template <typename Fx>
inline destructor_wrapper<Fx> destructor(Fx&& 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 } // sol