diff --git a/include/boost/python/detail/string_literal.hpp b/include/boost/python/detail/string_literal.hpp index d8230bb8..ddafa401 100644 --- a/include/boost/python/detail/string_literal.hpp +++ b/include/boost/python/detail/string_literal.hpp @@ -26,7 +26,19 @@ struct is_string_literal { BOOST_STATIC_CONSTANT(bool, value = true); }; + +# if defined(__DECCXX_VER) && __DECCXX_VER <= 60590014 +// This compiler mistakenly gets the type of string literals as char* +// instead of char[NN]. +template <> +struct is_string_literal +{ + BOOST_STATIC_CONSTANT(bool, value = true); +}; +# endif + # else + // CWPro7 has trouble with the array type deduction above template struct is_string_literal