$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-07-24 11:55:52
In this test CW8 fails to do the operator lookup within the function 
scope. That is doing a "using namespace boost::assign" doesn't add the 
+= operators to the resolution path for CW8. The workaround is to move 
the "using namespace" to the file scope:
===================================================================
RCS file: /cvsroot/boost/boost/libs/assign/test/std.cpp,v
retrieving revision 1.2
diff -u -r1.2 std.cpp
--- std.cpp	21 Jul 2004 11:36:11 -0000	1.2
+++ std.cpp	24 Jul 2004 16:25:35 -0000
@@ -15,6 +15,7 @@
  #include <string>
  using namespace std;
+using namespace boost::assign;
  template< typename K, typename V >
  inline pair<K,V> P( K k, V v )
@@ -46,7 +47,6 @@
  template< class C >
  void test_int_sequence()
  {
-    using namespace boost::assign;
      C c;
      BOOST_CHECK_EQUAL( c.size(), 0u );
@@ -59,7 +59,6 @@
  template< class C >
  void test_string_sequence()
  {
-    using namespace boost::assign;
      C c;
      BOOST_CHECK_EQUAL( c.size(), 0u );
@@ -74,7 +73,6 @@
  template< class C >
  void test_tuple_sequence()
  {
-    using namespace boost::assign;
      C c;
      BOOST_CHECK_EQUAL( c.size(), 0u );
@@ -88,7 +86,6 @@
  template< class M >
  void test_map()
  {
-    using namespace boost::assign;
      M m;
      m += P( "january",   31 ), P( "february", 28 ),
           P( "march",     31 ), P( "april",    30 ),
@@ -112,7 +109,6 @@
  void test_tuple()
  {
-    using namespace boost::assign;
      vector<three>    v_three;
      vector<four>     v_four;
      vector<five>     v_five;
@@ -131,7 +127,6 @@
  void check_std()
  {
-    using namespace boost::assign;
      test_int_sequence< deque<int> >();
      test_int_sequence< list<int> >();
      test_int_sequence< vector<int> >();
===================================================================
This make the test work on CW8, and still work on vc7.1 and mingw. And 
this fix should also apply to CW9.
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq