Open ABBAPOH opened 3 years ago
@ABBAPOH please rebase on develop to run all tests - thanks.
@jeking3 Sorry for the delay, I missed your comment.
Is it OK btw that the first check is only checks #if defined(_MSC_VER)
but the second also checks clang #if defined(_MSC_VER) && !defined(__clang__)
?
Some 3rdparty parsers (e.g. Qt moc) fail to parse the bitand.hpp due to the fact that bitand is a keyword in C++, not a macro. Modern MSVC versions define bitand/bitor only if __cplusplus macro is not defined, see iso646.h: https://pastebin.com/zTcd0juT
Thus, boost can also check the macro only in C mode making moc happy