The code looks fine to me but somehow visual studio 2015 sees it as an error.
Here is the code: (in numeric.hpp line 49)
template <typename NumberL, typename NumberR> constexpr typename std::common_type<NumberL, NumberR>::type max(NumberL lval, NumberR rval) { return (lval < rval) ? rval : lval; }
And here are the error messages:
syntax error: missing ')' before identifier 'lval' 'NumberL': redefinition; previous definition was 'template parameter' note: see declaration of 'NumberL'
The code looks fine to me but somehow visual studio 2015 sees it as an error.
Here is the code: (in numeric.hpp line 49)
template <typename NumberL, typename NumberR> constexpr typename std::common_type<NumberL, NumberR>::type max(NumberL lval, NumberR rval) { return (lval < rval) ? rval : lval; }
And here are the error messages:
syntax error: missing ')' before identifier 'lval' 'NumberL': redefinition; previous definition was 'template parameter' note: see declaration of 'NumberL'
Could this be a visual studio 2015 bug?