$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Sohail Somani (s.somani_at_[hidden])
Date: 2005-08-15 16:17:49
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] 
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of 
> Thorsten Ottosen
> Sent: Monday, August 15, 2005 11:17 AM
> To: boost-users_at_[hidden]
> Subject: [BULK] Re: [Boost-users] [range] From 1.33.0 gives 
> new warning vs 1.32
> Importance: Low
> 
> 
> 
> "Kevin Wheatley" <hxpro_at_[hidden]> wrote in message 
> news:4300715B.ED49E94C_at_cinesite.co.uk...
> > I had some code that with 1.32 compiled fine when compiled with 
> > warnings as errors, but now with 1.33 I get:
> 
> > Compiled with gcc 3.2.3 under Linux,
> >
> > perhaps something like this is needed?
> 
> >          template< class Char >
> >          inline Char* str_end( Char* s )
> >          {
> > -            return (Char*)str_end( s, s );
> > +            return const_cast<Char*>(str_end( s, s ));
> 
> what's the difference? A c-style cast is also a const-cast.
You didn't just say that.