Update sunpro_cc.hpp

define BOOST_NO_CXX14_DECLTYPE_AUTO when C++14 standard is not in action
This commit is contained in:
akumta authored and GitHub committed 2016-11-23 08:17:25 -08:00
1 parent 4f974d28c1
commit fa7121c0fe
1 file changed
+1 -1
+1 -1
View File
@@ -152,7 +152,7 @@
#if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
# define BOOST_NO_CXX14_CONSTEXPR
#endif
#if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
#if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304) || (__cplusplus < 201402L)
# define BOOST_NO_CXX14_DECLTYPE_AUTO
#endif
#if (__cplusplus < 201304) // There's no SD6 check for this....