Fixing gcc 3.3 compile failures -- fix for math/freefem

Jacques A. Vidrine nectar at FreeBSD.org
Sat Jul 19 12:05:01 PDT 2003


On Sat, Jul 19, 2003 at 05:05:39AM +0200, Simon Barner wrote:
> --- freefem/fem/femDisk.cpp.orig	Sat Jul 19 04:09:32 2003
> +++ freefem/fem/femDisk.cpp	Sat Jul 19 04:13:43 2003
> @@ -95,7 +95,7 @@
>      char *result = 0;
>      int dummy;
>  
> -    ifstream fin( path );
> +    std::ifstream fin( path );
>  
>      if ( fin.fail() )
>        {
[... 405 lines deleted ...]

A much smaller patch could be produced with

  using namespace std;

as appropriate.

Have you checked with the upstream author to see which approach is
likely to be rolled into the distribution?

Cheers,
-- 
Jacques Vidrine   . NTT/Verio SME      . FreeBSD UNIX       . Heimdal
nectar at celabo.org . jvidrine at verio.net . nectar at freebsd.org . nectar at kth.se


More information about the freebsd-ports mailing list