Home GnuPG

Replace usage of safe-bool idiom with explicit conversion operator

Description

Replace usage of safe-bool idiom with explicit conversion operator

* src/global.h (GPGMEPP_MAKE_SAFE_BOOL_OPERATOR): Remove.
* src/configuration.h (class Component, class Option, class Argument):
Replace "safe bool operator" with explicit operator bool.
* src/error.h (class Error): Ditto.

With C++11 we can use an explicit conversion operator to implement
operator bool in a safe way.

Details

Provenance
ikloeckerAuthored on Mon, May 12, 4:29 PM
Parents
rGPGMEPP2b30653d48b5: build: Append the linker search paths to the RPATH for installed targets
Branches
Unknown
Tags
Unknown