mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #85 from asuessenbach/notnot
fix typo in Optional::operator bool(): needs to be !!, not ! !
This commit is contained in:
commit
6163c6e8ca
@ -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