Subject: Re: aspell doesn't seem to like gcc3 :-(
To: None <M.Drochner@fz-juelich.de>
From: George Michaelson <ggm@apnic.net>
List: current-users
Date: 09/11/2003 11:31:18
Could this be included as a patch to the aspell sources in NetBSD?

http://www.mail-archive.com/aspell-devel@gnu.org/msg00139.html

[aspell-devel] Use of antiquated C++ in Aspell

    * From: Brian Nelson
    * Subject: [aspell-devel] Use of antiquated C++ in Aspell
    * Date: Wed, 15 Jan 2003 23:33:46 -0800 

GCC 3.2 warns about the use of antiquated C++ in split.cpp.  Here's a
patch that uses standard C++.

--- aspell-0.50.3.old/modules/speller/default/split.cpp	2001-11-29 19:55:48.000000000 -0800
+++ aspell-0.50.3/modules/speller/default/split.cpp	2003-01-15 21:29:57.000000000 -0800
@@ -1,4 +1,4 @@
-#include <strstream>
+#include <sstream>
 #include "split.hpp"
 
 using namespace std;
@@ -8,7 +8,7 @@
 
   vector<String> split(const String & str) {
     vector<String> data;
-    istrstream s(str.c_str());
+    istringstream s(str.c_str());
     String item;
     while (s >> item) {
       data.push_back(item);