Re: Small fix for GCC 4.6 issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13.05.2011 23:47, Udo Richter wrote:
> Am 13.05.2011 07:44, schrieb Tobi:

> Interestingly irritating... Since I don't have an GCC4.6 at hand, I
> *think* the source of the problem might be that cCursesFont has just an
> default constructor.

Right. The C++ standard explicitly requires an "user-declared default
constructor" here.

> So it should also work if you add an empty
> constructor cCursesFont::cCursesFont() { }  ???

Yes. Either this or -fpermissive. But personally I prefer the initializer
here, but I must admit I don't understand the technical reason, why the
standard requires a user defined default constructor at all.

Tobias

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux