octave-maintainers
[Top][All Lists]
Advanced

[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: Michael Goffioul
Subject: Re: ov-classdef.h:808:3: error: a class-key must be used when declaring a friend
Date: Fri, 11 Jan 2013 17:36:40 -0500

On Fri, Jan 11, 2013 at 5:09 PM, Ben Abbott <address@hidden> wrote:

On Jan 11, 2013, at 4:40 PM, Jordi Gutiérrez Hermoso wrote:

> 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.

Done.

        http://hg.savannah.gnu.org/hgweb/octave/rev/f97a746e4544

Of course, my mistake. Thanks for catching it.

Michael.
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]