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

From: Jacques A. Vidrine <nectar_at_FreeBSD.org>
Date: Sat, 19 Jul 2003 14:05:00 -0500
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
> _at__at_ -95,7 +95,7 _at__at_
>      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
Received on Sat Jul 19 2003 - 10:05:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:15 UTC