Clean up header detection for more headers + add optional

This commit is contained in:
Daniel James
2018-01-21 18:21:46 +00:00
parent 42bb81befa
commit b9ae7e7fb6
2 changed files with 41 additions and 16 deletions
+9 -3
View File
@@ -55,9 +55,6 @@ void write_compiler_info() {
if (difference) {
std::cout << "+" << difference << std::endl;
}
#if defined(_HAS_CXX17) && _HAS_CXX17
std::cout << "C++17 mode" << std::endl;
#endif
}
#else
@@ -75,10 +72,19 @@ int main() {
<< __cplusplus
<< std::endl;
#endif
std::cout << "BOOST_HASH_CXX17: "
<< BOOST_HASH_CXX17
<< std::endl;
std::cout << "BOOST_HASH_HAS_STRING_VIEW: "
<< BOOST_HASH_HAS_STRING_VIEW
<< std::endl;
std::cout << "BOOST_HASH_HAS_OPTIONAL: "
<< BOOST_HASH_HAS_OPTIONAL
<< std::endl;
#if defined(BOOST_NO_CXX11_HDR_TYPEINDEX)
std::cout << "No <typeindex>" << std::endl;
#else