From a926817c81a80842a52191a7358e9bb64ab3cf80 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 22 Jul 2018 11:52:10 +0200 Subject: minor cleanups --- dinput/dinput.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dinput') diff --git a/dinput/dinput.hpp b/dinput/dinput.hpp index 4806a992..c9c55349 100644 --- a/dinput/dinput.hpp +++ b/dinput/dinput.hpp @@ -33,14 +33,14 @@ public: di_t(); ~di_t(); di_t(const di_t&) : di_t() {} - di_t& operator=(const di_t&) { return *this; } + di_t& operator=(const di_t&) = default; diptr operator->() const { return handle; } operator bool() { return handle; } // for debugging bad usages template - operator void*() const + explicit operator void*() const { static_assert(sizeof(t) == -1); static_assert(sizeof(t) == 0); -- cgit v1.2.3