This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 
> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]