Boost logo

Boost :

From: Lars Gullik Bjønnes (larsbj_at_[hidden])
Date: 2002-08-20 16:42:51


The stdc++ lib in gcc defines some extra enum for streampos.

This results in warnings from the compiler when it is used in a
switch.

This patch gets rid of the warning, and should afaik not be albe to
impact on anyting else.

Index: cpp_regex_traits.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/regex/src/cpp_regex_traits.cpp,v
retrieving revision 1.26
diff -u -p -r1.26 cpp_regex_traits.cpp
--- cpp_regex_traits.cpp 17 Jul 2002 11:39:15 -0000 1.26
+++ cpp_regex_traits.cpp 20 Aug 2002 21:33:07 -0000
@@ -145,6 +145,7 @@ parser_buf<charT, traits>::seekoff(off_t
       else
          this->setg(g, g + newpos, g + size);
    }
+ default: ; // to silence some compilers
    }
    return static_cast<pos_type>(this->gptr() - this->eback());
 }

-- 
	Lgb

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