I have defined a function not in class
#define BlendLight(b1, b2) std::max(b1, b2) then in the class I am trying to use it:
float someFunk(float x, float y) { return BlendLight(x,y); //Error here - BlendLight marked red ( } And I get Error: Expected an identifier
I am try to compile this in Visual Studio 2010 std::max() header is included / I have add algorithm but error still present (((
std::max()included?BlendLightdefined in the same file assomeFunk? IfBlendLightis in a header file, do you include that header file?return BlendLight(x,y);withreturn std::max(x,y);does the compiler complain?