Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make '<?=' available for use in C++? [duplicate]

Possible Duplicate:
What does the >?= operator mean?

I found this code segment

...
for(k=i+1;k<j;k++) r <?= go(i,k,b)+go(k,j,b);
for(k='A';k<='Z';k++) r <?= 1+go(i,j,k);
...

I'm interested in <?= operator. It seems to me that it should compare value of r with right side of the operator and in case that right side is greater than r it should assign right side to r. I would like to know where are this (and similar operators, I suppose) defined and what should I do make them available for use with g++ compiler?

like image 558
plesiv Avatar asked Dec 02 '22 02:12

plesiv


1 Answers

The <?= operator was a GCC extension that was removed in version 4.2. See this question.

Use std::min instead.

like image 116
hammar Avatar answered Dec 21 '22 23:12

hammar