Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2005-08-15 17:45:43


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Thorsten Ottosen
> Sent: Monday, August 15, 2005 2:38 PM
> To: boost-users_at_[hidden]
> Subject: [BULK] Re: [Boost-users] [BULK] Re: [range] From
> 1.33.0 gives new warningvs 1.32
> Importance: Low
>
>
> > > > 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.
>
> Apparently I did.
>
> What's the difference in the generated object code?

A small percentage of people read object code on a regular basis. I tend
to read the source more.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net