Merge pull request #85 from asuessenbach/notnot

fix typo in Optional::operator bool(): needs to be !!, not ! !
This commit is contained in:
asuessenbach 2016-03-23 17:56:18 +01:00
commit 6163c6e8ca
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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;