diff options
Diffstat (limited to 'boost/hana/config.hpp')
-rw-r--r-- | boost/hana/config.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/boost/hana/config.hpp b/boost/hana/config.hpp index fd1939c09e..de7d1dc794 100644 --- a/boost/hana/config.hpp +++ b/boost/hana/config.hpp @@ -71,7 +71,11 @@ Distributed under the Boost Software License, Version 1.0. // Check the compiler for general C++14 capabilities ////////////////////////////////////////////////////////////////////////////// #if (__cplusplus < 201400) -# warning "Your compiler doesn't provide C++14 or higher capabilities. Try adding the compiler flag '-std=c++14' or '-std=c++1y'." +# if defined(_MSC_VER) +# pragma message("Warning: Your compiler doesn't provide C++14 or higher capabilities. Try adding the compiler flag '-std=c++14' or '-std=c++1y'.") +# else +# warning "Your compiler doesn't provide C++14 or higher capabilities. Try adding the compiler flag '-std=c++14' or '-std=c++1y'." +# endif #endif ////////////////////////////////////////////////////////////////////////////// |