Hello!

Currently, it is impossible to include uima-cpp headers in a c++11
program with the following error:
include/uima/strtools.hpp: 731: std::istream has no member named
'operator void*()'

This member has been changed in C++11:
http://www.cplusplus.com/reference/ios/ios/operator_bool/ . Explicit
operator overloading allows not to use the hack with operator void*()
anymore.

Anyway, both operator bool() and operator void*() can be invoked using
simple if statement, the compiler will pick the correct operator
itself.

Please, see my patch attached. It fixes the issue with C++11 compilers
and works with C++98 compilers.

Best regards,
Boris Dolgov.

Reply via email to