From 8e419a9cd6d96f4ff25f202a4f5e4e0f9725a53c Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Tue, 1 Mar 2022 13:14:34 +0100 Subject: Marked IoBuffer::operator bool () method as explicit --- zencore/include/zencore/iobuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zencore') 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(); } -- cgit v1.2.3