Boost logo

Boost :

From: Daniel James (daniel_at_[hidden])
Date: 2005-06-28 17:34:06


Gennadiy Rozental wrote:
> 1. Somehow/somewhere basic_cstring template parameter gets deduced
> incorrectly (char instead of char const).

This happens. I've submitted a bug report to Walter, but if you're
willing the following patch works around it and also activates on a
needed test config macro. But there are still problems.

Daniel

diff -ru cvs/boost/boost/test/detail/config.hpp
projects/boost/boost/test/detail/config.hpp
--- cvs/boost/boost/test/detail/config.hpp 2005-02-20 08:27:06.000000000
+0000
+++ projects/boost/boost/test/detail/config.hpp 2005-06-28
23:27:43.862264400 +0100
@@ -55,7 +55,8 @@
      BOOST_WORKAROUND(__GNUC__, < 3) || \
      defined(__sgi) && _COMPILER_VERSION <= 730 || \
      BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) || \
- defined(__DECCXX)
+ defined(__DECCXX) || \
+ defined(__DMC__)
  #define BOOST_TEST_NO_PROTECTED_USING
  #endif

diff -ru cvs/boost/boost/test/utils/basic_cstring/basic_cstring.hpp
projects/boost/boost/test/utils/basic_cstring/basic_cstring.hpp
--- cvs/boost/boost/test/utils/basic_cstring/basic_cstring.hpp
2005-04-12 07:49:05.000000000 +0100
+++ projects/boost/boost/test/utils/basic_cstring/basic_cstring.hpp
2005-06-28 23:17:39.000000000 +0100
@@ -596,7 +596,11 @@
  inline bool
  operator==( basic_cstring<CharT1> const& s1, CharT2* s2 )
  {
+#if !defined(__DMC__)
      return s1 == basic_cstring<CharT2>( s2 );
+#else
+ return s1 == basic_cstring<CharT2 const>( s2 );
+#endif
  }

 
//____________________________________________________________________________//


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk