Quantcast
Viewing all articles
Browse latest Browse all 1175

std::is_function ignores noexcept variants

This is my first time posting on the forum. So please correct me if I do not conform to the forum's guidelines.

Code snippet

#include <type_traits>
static_assert(std::is_function_v<void() noexcept>);

I do not have any OS information since I used icc v19.01 from godbolt.org.

This static assert fails with icc v19 but the same is not the case with gcc or clang compilers. Compiler flags used -std=c++17 -O3

Is this issue fixed in a later version? If yes, which version is this fixed? How would I retrieve such information in the future when required? Thanks!!!

TCE Open Date: 

Tuesday, December 31, 2019 - 10:49

Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>