mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
fix typo in Optional::operator bool(): needs to be !!, not ! !
This commit is contained in:
parent
900744a8ca
commit
e30ca6ffa2
@ -224,7 +224,7 @@ std::string const optionalClassHeader = (
|
||||
"\n"
|
||||
" operator RefType*() const { return m_ptr; }\n"
|
||||
" RefType const* operator->() const { return m_ptr; }\n"
|
||||
" explicit operator bool() const { return !m_ptr; }\n"
|
||||
" explicit operator bool() const { return !!m_ptr; }\n"
|
||||
"\n"
|
||||
" private:\n"
|
||||
" RefType *m_ptr;\n"
|
||||
|
@ -193,7 +193,7 @@ namespace vk
|
||||
|
||||
operator RefType*() const { return m_ptr; }
|
||||
RefType const* operator->() const { return m_ptr; }
|
||||
explicit operator bool() const { return !m_ptr; }
|
||||
explicit operator bool() const { return !!m_ptr; }
|
||||
|
||||
private:
|
||||
RefType *m_ptr;
|
||||
|
Loading…
Reference in New Issue
Block a user