M
michael.goossens
1>e:\development\root\root\vector3.h(24) : warning C4114: same type
qualifier used more than once
1>e:\development\root\root\vector3.h(24) : warning C4114: same type
qualifier used more than once
1>e:\development\root\root\vector3.h(82) : warning C4114: same type
qualifier used more than once
line 24: Vector3( const Vector3 const * v );
line 82: inline Vector3::Vector3( const Vector3 const * v )
Ok I get that it is because I use const twice.
But I learned that it has to be done like that =s.
The first const is for making sure the object cannot be changed and
the second one so the pointer cannot be changed. So is this a
misinterpretation of mine? Or is there something else.
qualifier used more than once
1>e:\development\root\root\vector3.h(24) : warning C4114: same type
qualifier used more than once
1>e:\development\root\root\vector3.h(82) : warning C4114: same type
qualifier used more than once
line 24: Vector3( const Vector3 const * v );
line 82: inline Vector3::Vector3( const Vector3 const * v )
Ok I get that it is because I use const twice.
But I learned that it has to be done like that =s.
The first const is for making sure the object cannot be changed and
the second one so the pointer cannot be changed. So is this a
misinterpretation of mine? Or is there something else.