Re: VC8 Compiler bizarreness
- From: "Bo Persson" <bop@xxxxxx>
- Date: Tue, 3 Jun 2008 21:04:04 +0200
Murrgon wrote:
class TTexture;
typedef TSmartPtr<TTexture> TTexturePtr;
typedef TArray<TTexturePtr> TTexturePtrArray;
TTexturePtrArray apTextures;
I am having the most bizarre compiler error. Code that has been
working for years all of a sudden, in one particular case, throws a
compiler error:
for (UINT i = 0; apTextures.Size() > i; ++i)
{
if (NULL != apTextures[i])
{
// Do something
}
}
error C2593: 'operator !=' is ambiguous
As this is dealing with templates, the compiler comes along and
tells you what types it thinks might fit. The weird part is, none
of the suggested types have anything to do with a TTexture. What? I
don't know how the compiler resolves the types, but something is
messed up.
Do any of the suggested types have an operator!=()?
Recently added?
Bo Persson
.
- Follow-Ups:
- Re: VC8 Compiler bizarreness
- From: Murrgon
- Re: VC8 Compiler bizarreness
- References:
- VC8 Compiler bizarreness
- From: Murrgon
- VC8 Compiler bizarreness
- Prev by Date: VC8 Compiler bizarreness
- Next by Date: Re: Passing address of multidimentional array
- Previous by thread: VC8 Compiler bizarreness
- Next by thread: Re: VC8 Compiler bizarreness
- Index(es):