diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-22 11:52:10 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-24 00:43:04 +0200 |
commit | a926817c81a80842a52191a7358e9bb64ab3cf80 (patch) | |
tree | 198ff643997d08e59138fdcd5110a201ac1351d6 /dinput | |
parent | b0d763d032a122bbf0465fa37a2eaaff3fd3a916 (diff) |
minor cleanups
Diffstat (limited to 'dinput')
-rw-r--r-- | dinput/dinput.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<typename t = void> - operator void*() const + explicit operator void*() const { static_assert(sizeof(t) == -1); static_assert(sizeof(t) == 0); |