Mark every bool conversion as explicit

This commit is contained in:
Jérôme Leclercq
2017-06-21 18:10:46 +02:00
parent d4532ce7ff
commit b2e23cfb56
9 changed files with 9 additions and 9 deletions

View File

@@ -145,7 +145,7 @@ namespace Nz
template<bool BadCall = true>
void* operator&() const;
operator bool() const;
explicit operator bool() const;
Bit& operator=(bool val);
Bit& operator=(const Bit& bit);

View File

@@ -24,7 +24,7 @@ namespace Nz
bool IsInitialized() const;
void Uninitialize();
operator bool() const;
explicit operator bool() const;
Initializer& operator=(const Initializer&) = delete;
Initializer& operator=(Initializer&&) = delete; ///TODO

View File

@@ -38,7 +38,7 @@ namespace Nz
Nz::String ToString() const;
operator bool() const;
explicit operator bool() const;
operator T*() const;
T* operator->() const;

View File

@@ -31,7 +31,7 @@ namespace Nz
bool Reset(T* object = nullptr);
ObjectRef& Swap(ObjectRef& ref);
operator bool() const;
explicit operator bool() const;
operator T*() const;
T* operator->() const;

View File

@@ -41,7 +41,7 @@ namespace Nz
void SetPtr(VoidPtr ptr);
void SetStride(int stride);
operator bool() const;
explicit operator bool() const;
operator T*() const;
T& operator*() const;
T* operator->() const;