|
|
@@ -40,9 +40,6 @@ private:
|
|
|
*/
|
|
|
class cmArchiveWrite
|
|
|
{
|
|
|
- typedef void (cmArchiveWrite::*safe_bool)();
|
|
|
- void safe_bool_true() {}
|
|
|
-
|
|
|
public:
|
|
|
/** Compression type. */
|
|
|
enum Compress
|
|
|
@@ -73,10 +70,7 @@ public:
|
|
|
bool recursive = true);
|
|
|
|
|
|
/** Returns true if there has been no error. */
|
|
|
- operator safe_bool() const
|
|
|
- {
|
|
|
- return this->Okay() ? &cmArchiveWrite::safe_bool_true : nullptr;
|
|
|
- }
|
|
|
+ explicit operator bool() const { return this->Okay(); }
|
|
|
|
|
|
/** Returns true if there has been an error. */
|
|
|
bool operator!() const { return !this->Okay(); }
|