Hi,
This compiles:
But for thisCode:double a = cmath::euclideanDistance2D<BlasVector,double>(mTargetPosition, mrEntity.vehicleModel().pos()); assert(10.0 < a);
msvc gives these erros and warnings:Code:assert(10.0 < cmath::euclideanDistance2D<BlasVector,double>(mTargetPosition, mrEntity.vehicleModel().pos()));
Arn't template parameters allowed inside macro calls?Code:1>.\GoalMoveXY.cpp(46) : warning C4002: too many actual parameters for macro 'assert' 1>.\GoalMoveXY.cpp(46) : error C2143: syntax error : missing ',' before ')' 1>.\GoalMoveXY.cpp(46) : error C2059: syntax error : ')' 1>.\GoalMoveXY.cpp(46) : error C2143: syntax error : missing ',' before ')' 1>.\GoalMoveXY.cpp(46) : error C2059: syntax error : ')' 1>.\GoalMoveXY.cpp(50) : error C2143: syntax error : missing ',' before ')' 1>.\GoalMoveXY.cpp(53) : error C2065: 'way' : undeclared identifier 1>.\GoalMoveXY.cpp(53) : error C2228: left of '.rend' must have class/struct/union 1> type is ''unknown-type'' 1>.\GoalMoveXY.cpp(53) : error C2143: syntax error : missing ',' before ')' 1>.\GoalMoveXY.cpp(56) : error C2143: syntax error : missing ';' before '}' 1>.\GoalMoveXY.cpp(60) : error C2143: syntax error : missing ';' before '{' 1>.\GoalMoveXY.cpp(65) : error C2143: syntax error : missing ';' before '{' 1>.\GoalMoveXY.cpp(68) : error C2143: syntax error : missing ';' before '}' 1>.\GoalMoveXY.cpp(70) : error C2143: syntax error : missing ';' before '{' 1>.\GoalMoveXY.cpp(71) : error C2143: syntax error : missing ',' before ')' 1>.\GoalMoveXY.cpp(72) : error C2143: syntax error : missing ',' before ')' 1>.\GoalMoveXY.cpp(81) : error C2143: syntax error : missing ';' before '{' 1>.\GoalMoveXY.cpp(83) : error C2143: syntax error : missing ';' before '}' 1>.\GoalMoveXY.cpp(84) : error C2143: syntax error : missing ';' before '}' 1>.\GoalMoveXY.cpp(87) : error C2143: syntax error : missing ';' before '}' 1>.\GoalMoveXY.cpp(90) : error C2143: syntax error : missing ';' before '}' 1>.\GoalMoveXY.cpp(91) : error C2143: syntax error : missing ';' before '}' 1>.\GoalMoveXY.cpp(91) : fatal error C1004: unexpected end-of-file found
Thank you!



LinkBack URL
About LinkBacks



CornedBee