incompatibility between g++ and vc++: Mutex (solved)

Vincent Torri torri@math.u-strasbg.fr
Fri Jun 25 12:40:00 GMT 2004


> 
> Hello,
> 
> i have another problem with this line: 
> 
> Mutex first & = &other < this ?  mutex_: other.mutex_;
> 
> There's an error with g++ (and none with vc++) : 
> error: syntax error before `;' token

I have solved this problem
there were missing parenthesis... :

  Mutex first & = (&other) < this ?  mutex_: other.mutex_;

I don't know if, that case, vc++ would have given the wrong result.

Vincent TORRI



More information about the Gcc-help mailing list