aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell-devel] Problem with common/string.hpp for non-GCCcompilers


From: Gary Setter
Subject: Re: [aspell-devel] Problem with common/string.hpp for non-GCCcompilers
Date: Tue, 7 Dec 2004 07:40:05 -0600

----- Original Message ----- 
From: "Albert Chin" <address@hidden>
To: <address@hidden>
Sent: Monday, December 06, 2004 9:27 AM
Subject: Re: [aspell-devel] Problem with common/string.hpp for
non-GCCcompilers


> On Mon, Dec 06, 2004 at 08:19:47AM -0600, Gary Setter wrote:
> > > --- common/string.hpp.orig Sun Dec  5 21:13:31 2004
> > > +++ common/string.hpp Sun Dec  5 21:13:35 2004
> > > @@ -492,7 +492,7 @@
> > >
> > >  namespace std
> > >  {
> > > -  template<> inline void swap(acommon::String & x,
> > acommon::String & y) {return x.swap(y);}
> > > +  template<> static inline void swap(acommon::String & x,
> > acommon::String & y) {return x.swap(y);}
> > >  }
> >
> > <snip>
> > This is what the win32 port uses
> > //gds 13-Sep-04 removed return statment.
> > namespace std
> > {
> >   template<> static inline void swap(acommon::String & x,
> > acommon::String & y) { x.swap(y);}
> > }
>
> I tried this but get the same error.

Hi Albert,
This also works for VC and BC. Does it work for you?

namespace std
 {
 template<> inline void swap(acommon::String & x,
 acommon::String & y) { x.swap(y);}
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]