X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..refs/heads/master:/heap/Strong.h diff --git a/heap/Strong.h b/heap/Strong.h index 27ab5d3..5c0f832 100644 --- a/heap/Strong.h +++ b/heap/Strong.h @@ -84,9 +84,7 @@ public: bool operator!() const { return !slot() || !*slot(); } - // This conversion operator allows implicit conversion to bool but not to other integer types. - typedef JSValue (HandleBase::*UnspecifiedBoolType); - operator UnspecifiedBoolType*() const { return !!*this ? reinterpret_cast(1) : 0; } + explicit operator bool() const { return !!*this; } void swap(Strong& other) {