[Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus

marc.mutz at kdab dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 8 20:41:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79433

--- Comment #5 from Marc Mutz <marc.mutz at kdab dot com> ---
Andrew, you're taking the easy way out. It might be that it works as
implemented, but that behaviour is useless.

Please explain how one should detect, in a portable way, whether string_view
and experimental::string_view is available, if not by headers check.


More information about the Gcc-bugs mailing list