P
Pep
I inherited soem weird code that makes no sense to me :S The following
line compiles under the gnu c++ compiler
int requiredLength = requestedLength >? 32;
but the windows c++ compiler rejects the >? operator and I have no
idea what it does, nor can I find any mention of this when I google
for the operator.
The complete code section has been modified with #ifdef to get it to
work via the windows c++ compiler
#ifdef WIN32_COMPILER
int bar = foo;
if (bar < 32)
{
bar = 32;
}
#else
int bar = foo >? 32;
#endif
So the >? operator is expanded in the windows code to a check for bar
less than 32 and if true assign 32 to bar. Yet the condensed gnu
version of the code uses a greater than operator and presumably the
ternary operator :?
line compiles under the gnu c++ compiler
int requiredLength = requestedLength >? 32;
but the windows c++ compiler rejects the >? operator and I have no
idea what it does, nor can I find any mention of this when I google
for the operator.
The complete code section has been modified with #ifdef to get it to
work via the windows c++ compiler
#ifdef WIN32_COMPILER
int bar = foo;
if (bar < 32)
{
bar = 32;
}
#else
int bar = foo >? 32;
#endif
So the >? operator is expanded in the windows code to a check for bar
less than 32 and if true assign 32 to bar. Yet the condensed gnu
version of the code uses a greater than operator and presumably the
ternary operator :?