summaryrefslogtreecommitdiff
path: root/boost/test/utils/basic_cstring/basic_cstring.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/test/utils/basic_cstring/basic_cstring.hpp')
-rw-r--r--boost/test/utils/basic_cstring/basic_cstring.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/test/utils/basic_cstring/basic_cstring.hpp b/boost/test/utils/basic_cstring/basic_cstring.hpp
index fdd87d5211..cec0214b73 100644
--- a/boost/test/utils/basic_cstring/basic_cstring.hpp
+++ b/boost/test/utils/basic_cstring/basic_cstring.hpp
@@ -60,8 +60,8 @@ public:
// !! should also present reverse_iterator, const_reverse_iterator
-#if !BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600))
- enum npos_type { npos = static_cast<size_type>(-1) };
+#if !BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) && !defined(__DCC__)
+ BOOST_STATIC_CONSTANT(size_type, npos = static_cast<size_type>(-1));
#else
// IBM/VisualAge version 6 is not able to handle enums larger than 4 bytes.
// But size_type is 8 bytes in 64bit mode.