diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 06:02:14 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 07:49:13 +0100 |
commit | 1e04979c3452d4eac633677876a88f9411a1153d (patch) | |
tree | 99a126a9d2647fd25a8ef2adbab6bb84f2c97dfb /dinput | |
parent | 03d28dde1635e36508cff1f9eabc265cdb5febb9 (diff) |
cruft only
Diffstat (limited to 'dinput')
-rw-r--r-- | dinput/dinput.hpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/dinput/dinput.hpp b/dinput/dinput.hpp index 4bb3b458..9dbc576c 100644 --- a/dinput/dinput.hpp +++ b/dinput/dinput.hpp @@ -36,16 +36,6 @@ public: di_t& operator=(const di_t&) = default; diptr operator->() const { return handle; } - operator bool() { return handle != nullptr; } - - // for debugging bad usages. must use a dependent name. - template<typename t = void> - explicit operator void*() const - { - static_assert(sizeof(t) == -1); - static_assert(sizeof(t) == 0); - - return nullptr; - } + operator bool() const { return handle != nullptr; } + operator diptr() const { return handle; } }; - |