diff options
| author | Martin Ridgers <[email protected]> | 2022-03-01 13:14:34 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2022-03-15 13:45:20 +0100 |
| commit | 8e419a9cd6d96f4ff25f202a4f5e4e0f9725a53c (patch) | |
| tree | 102b5ad246957fbf2c02cdd9416a919f782ea4e3 /zencore/include | |
| parent | Set a default value for "Size" parameter of IoBuffer(OuterBuffer, ...) (diff) | |
| download | zen-8e419a9cd6d96f4ff25f202a4f5e4e0f9725a53c.tar.xz zen-8e419a9cd6d96f4ff25f202a4f5e4e0f9725a53c.zip | |
Marked IoBuffer::operator bool () method as explicit
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/iobuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/include/zencore/iobuffer.h b/zencore/include/zencore/iobuffer.h index 2802194a6..da68be516 100644 --- a/zencore/include/zencore/iobuffer.h +++ b/zencore/include/zencore/iobuffer.h @@ -351,7 +351,7 @@ public: ZENCORE_API IoBuffer(EFileTag, void* FileHandle, uint64_t ChunkFileOffset, uint64_t ChunkSize); ZENCORE_API IoBuffer(EBorrowedFileTag, void* FileHandle, uint64_t ChunkFileOffset, uint64_t ChunkSize); - inline operator bool() const { return !m_Core->IsNull(); } + inline explicit operator bool() const { return !m_Core->IsNull(); } inline operator MemoryView() const& { return MemoryView(m_Core->DataPointer(), m_Core->DataBytes()); } inline void MakeOwned() { return m_Core->MakeOwned(); } [[nodiscard]] inline bool IsOwned() const { return m_Core->IsOwned(); } |