Re: Problem with common/string.hpp for non-GCC compilers

"Gary Setter" <[email protected]>
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <000401c4db9e$d7fe4ee0$35144a0c@pavilion>
----- Original Message ----- 
From: "Albert Chin" <[email protected]>
To: <[email protected]>
Sent: Sunday, December 05, 2004 9:17 PM
Subject: [aspell-devel] Problem with common/string.hpp for
non-GCC compilers


> Trying to build modules/filter/email.cpp from 0.60.1.1 on the
IRIX C++
> and AIX C++ compilers I get the error (from the IRIX C++
compiler):
>   cc-1080 CC: ERROR File = ./common/string.hpp, Line = 495
>     A storage class cannot be specified at this point.
>
>       template<> static inline void swap(acommon::String & x,
acommon::String & y) {return x.swap(y);}
>                  ^
>
> The patch below removed the error. Is it correct?
>
> -- 
> albert chin ([email protected])
>
> -- snip snip
> --- 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);}
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.