Using '>>' across gcc and visual c++ -


We are writing an application that is compiled with both GCC and Visual C #. Some team members only use Visual C ++ / Windows, and others only use GCC / Linux. The construction sometimes breaks due to the differences between the compilers. I've "corrected" many situations, which helps to make a break by using compiler options to enable / disable the alert, but currently I am using ">>" within C ++ templates . The standard has been extended to include Visual Studio as a valid expression within templates for uniquely ">>" (this is valid only in the proposed C ++ 0x). But GCC does not accept it as a valid template. Now I have not found any option in Visual Studio to allow ">>" to allow ">>" How should I proceed?

Note: This question is about the double angle bracket, not the correct change operator.

currently supports GCC ():

  g ++ --std = c ++ 0x -o output file 1.cpp file2.cpp ...  

You must specify clearly that your source code is C ++ 0x standard Is written in


Comments