[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ov-classdef.h:808:3: error: a class-key must be used when declaring
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: ov-classdef.h:808:3: error: a class-key must be used when declaring a friend |
Date: |
Fri, 11 Jan 2013 16:40:51 -0500 |
On 11 January 2013 16:31, Ben Abbott <address@hidden> wrote:
> For gcc 4.5 from Macports on MacOS X 10.7.5 I need the following change
> (changeset is attached also)
>
> diff --git a/libinterp/octave-value/ov-classdef.h
> b/libinterp/octave-value/ov-classdef.h
> --- a/libinterp/octave-value/ov-classdef.h
> +++ b/libinterp/octave-value/ov-classdef.h
> @@ -805,7 +805,7 @@
> class
> cdef_property : public cdef_object
> {
> - friend cdef_class;
> + friend class cdef_class;
>
> private:
>
> @@ -892,7 +892,7 @@
> class
> cdef_method : public cdef_object
> {
> - friend cdef_class;
> + friend class cdef_class;
>
> private:
>
> @@ -1068,7 +1068,7 @@
> class
> cdef_package : public cdef_object
> {
> - friend cdef_class;
> + friend class cdef_class;
>
> private:
This is fine, go ahead and push it.
- Jordi G. H.