openexr-devel
[Top][All Lists]
Advanced

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

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


From: Jim Hourihan
Subject: [Openexr-devel] Small bug in ImfHeader.h with gcc >= 4.0.2
Date: Wed, 12 Dec 2007 19:26:12 -0800


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





reply via email to

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