diff options
Diffstat (limited to 'source/slang/slang-ast-support-types.h')
| -rw-r--r-- | source/slang/slang-ast-support-types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-ast-support-types.h b/source/slang/slang-ast-support-types.h index 9dd481acb..3ccbd4ff7 100644 --- a/source/slang/slang-ast-support-types.h +++ b/source/slang/slang-ast-support-types.h @@ -1260,6 +1260,7 @@ FIDDLE() namespace Slang Type* Ptr() { return type; } operator Type*() { return type; } Type* operator->() { return Ptr(); } + explicit operator bool() const { return type != nullptr; } ThisType& operator=(const ThisType& rhs) = default; |
