diff --git a/src/util/drop.hpp b/src/util/drop.hpp index 04d7e3351..122bdf808 100644 --- a/src/util/drop.hpp +++ b/src/util/drop.hpp @@ -15,9 +15,6 @@ inline void drop(T &var) * Helps you avoid accidentally dropping a pointer not the object behind it. */ template -inline void drop(T * /*var*/) -{ - static_assert(false, "Use delete on a pointer instead of drop()."); -} +inline void drop(T * /*var*/) = delete; } // namespace chatterino