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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux