Wanrning C4400 : const/volatile qualifiers on this type are not supported ???

Hi,

Has anyone run across this compiler warning before

3>.\Foo.cpp(223) : warning C4400: 'const Microsoft::DirectX::Vector3' : const/volatile qualifiers on this type are not supported

3>        while importing type 'Microsoft::DirectX::Vector3 ' from assembly 'Microsoft.DirectX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

3>        while importing type 'FooNS::BarNS::Test ' from assembly 'FooCode, Version=1.0.1952.31754, Culture=neutral, PublicKeyToken=null'


The error is managed c++, using 2005 Beta2 and the actuall line of code that causes warning looks like this:

233   rManager->GetFoo()->InitializeDevice( this );


Since the code was ported to Beta2, there's quite a few different warnings concerning DirectX that were not there before. I'm running DX 9.0c.

So is anyone else in the same boat

-J








Answer this question

Wanrning C4400 : const/volatile qualifiers on this type are not supported ???

  • ltca

    Do you have a const Vector3 somewhere

  • RandyGephart

    cv-qualifiers are not supported on managed types. I guess that somewhere on line 233, you're getting a const Vector3 as part of the evaluation of the statement. Does FooNS::BarNS::Test do something like this

  • ElChairo

    hmm There is no use of volatile in my entire project. FooNS::BarNS::Test is doesn't contain a const either and it isn't a derived class.

     Shaun Miller MS wrote:
    cv-qualifiers are not supported on managed types. I guess that somewhere on line 233, you're getting a const Vector3 as part of the evaluation of the statement. Does FooNS::BarNS::Test do something like this

  • Wanrning C4400 : const/volatile qualifiers on this type are not supported ???