C:\dev\rd\libs\3rdparty\OpenEXR\vc\vc7\include\IlmImf\ImfAttribute.h(355)
: warning C4541: 'dynamic_cast' used on polymorphic type 'Imf::Attribute' with
/GR-; unpredictable behavior may result
C:\dev\rd\libs\3rdparty\OpenEXR\vc\vc7\include\Imath\ImathVec.h(234) :
while compiling class-template member function 'const
Imf::TypedAttribute<T> *Imf::TypedAttribute<T>::cast(const
Imf::Attribute *)'
with
[
T=Imf::Compression
]
C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\include\xstring(521) : while compiling class-template
member function
'Imf::TypedAttribute<T>::TypedAttribute(void)'
with
[
T=Imf::Compression
]
C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\include\xmemory(156) : while compiling class-template
member function
'Imf::TypedAttribute<T>::~TypedAttribute(void)'
with
[
T=Imf::Compression
]
C:\dev\rd\libs\3rdparty\OpenEXR\vc\vc7\include\IlmImf\ImfCompressionAttribute.h(54)
: see reference to class template instantiation 'Imf::TypedAttribute<T>'
being compiled
with
[
T=Imf::Compression
]
-----------------------------------------
I can
stop this warning by adding the /GR flag to my compiler. The option (/GR) adds code to check
object types at run time.
I was
worried that this might slow down the code though ..
What
do you guys do and what do you suggest ?
Thanks
barnaby