Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
C++ 1.7.3
-
None
-
None
Description
Compilation dies with
tools/checksig/InteropResolver.cpp: In member function 'virtual XSECCryptoKey* InteropResolver::resolveKey(DSIGKeyInfoList*)': tools/checksig/InteropResolver.cpp:648:9: error: cannot convert 'bool' to 'XSECCryptoKey*' in return return false; ^~~~~
From https://gcc.gnu.org/gcc-6/porting_to.html:
Cannot convert 'bool' to 'T*'
The current C++ standard only allows integer literals to be used as null pointer constants, so other constants such as false and (1 - 1) cannot be used where a null pointer is desired. Code that fails to compile with this error should be changed to use nullptr, or 0, or NULL.
Replacing the above false with NULL is enough to get a successful build with GCC 6.1.1.
Attachments
Issue Links
- duplicates
-
SANTUARIO-437 Cannot compile as C++11
- Closed