c++ - C++11 constexpr compilation error -
i trying declare constexpr
, throws compilation errors.
static constexpr float gobasemovementspeed = (1.135f / 440.f);
why line not working?
error c2144: syntax error : 'float' should preceded ';'
error c4430: missing type specifier - int assumed. note: c++ not support default-int
gobasemovementspeed
member of class.
compiler: visual studio 2013
visual studio 2013 not support c++11 features. in same time supports tiny part of c++14 features std::make_unique
example.
constexpr
not supported on visual studio 2013.
for full list: https://msdn.microsoft.com/en-us/library/hh567368.aspx
Comments
Post a Comment