openexr-devel
[Top][All Lists]
Advanced

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

Re: [Openexr-devel] Small bug in ImfHeader.h with gcc >= 4.0.2


From: Florian Kainz
Subject: Re: [Openexr-devel] Small bug in ImfHeader.h with gcc >= 4.0.2
Date: Fri, 21 Dec 2007 14:34:02 -0800
User-agent: Mozilla Thunderbird 1.0 (X11/20041207)

Thank you.  ImfHeader.h has been fixed.

Jim Hourihan wrote:

Hi all, the CVS ImfHeader.h has a couple of minor bugs:

in

T* Header::findTypedAttribute<T> (const std::string&)
T* Header::typedAttribute<T> (const std:string&)

(both const and non-const versions)

These are calling the older versions that take const char[] as an argument.
However, they are not supplying the template parameter in that call:

    findTypedAttribute (name.c_str())

which is causing gcc 4.0.2 to complain. This fixes the problem:

    findTypedAttribute<T> (name.c_str())

I assume some versions of the front end are implicitly adding the type parameter based on the type of this (4.0.1 for example works fine).

    -Jim



_______________________________________________
Openexr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/openexr-devel







reply via email to

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