i have same problem, but for dump_proto when i try to compile it!
error C2146: syntax error : missing ';' before identifier 'T'
_src\client\gamelib\../eterBase/Utils.h(223): error C2146: syntax error : missing ';' before identifier 'LinearInterpolation'
_src\client\gamelib\../eterBase/Utils.h(223): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
_src\client\gamelib\../eterBase/Utils.h(223): error C2143: syntax error : missing ',' before '&'
_src\client\gamelib\../eterBase/Utils.h(226): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
_src\client\gamelib\../eterBase/Utils.h(229): error C2146: syntax error : missing ';' before identifier 'T'
src\client\gamelib\../eterBase/Utils.h(229): error C2146: syntax error : missing ';' before identifier 'HermiteInterpolation'
_src\client\gamelib\../eterBase/Utils.h(229): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
_src\client\gamelib\../eterBase/Utils.h(229): error C2143: syntax error : missing ',' before '&'
_src\client\gamelib\../eterBase/Utils.h(234): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
CArea loading optimization
in Programming & Scripts
Posted · Edited by Hornet
i have same problem, but for dump_proto when i try to compile it!
error C2146: syntax error : missing ';' before identifier 'T'
_src\client\gamelib\../eterBase/Utils.h(223): error C2146: syntax error : missing ';' before identifier 'LinearInterpolation'
_src\client\gamelib\../eterBase/Utils.h(223): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
_src\client\gamelib\../eterBase/Utils.h(223): error C2143: syntax error : missing ',' before '&'
_src\client\gamelib\../eterBase/Utils.h(226): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
_src\client\gamelib\../eterBase/Utils.h(229): error C2146: syntax error : missing ';' before identifier 'T'
src\client\gamelib\../eterBase/Utils.h(229): error C2146: syntax error : missing ';' before identifier 'HermiteInterpolation'
_src\client\gamelib\../eterBase/Utils.h(229): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
_src\client\gamelib\../eterBase/Utils.h(229): error C2143: syntax error : missing ',' before '&'
_src\client\gamelib\../eterBase/Utils.h(234): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Utils.h
#include "../UserInterface/Locale_inc.h"
#ifdef ENABLE_MAP_OBJECT_OPTIMIZATION
template<typename T>
constexpr T LinearInterpolation(const T& tMin, const T& tMax, float fRatio)
{
return T((1.0f - fRatio) * tMin + fRatio * tMax);
}
template<typename T>
constexpr T HermiteInterpolation(const T& tMin, const T& tMax, float fRatio)
{
fRatio = MINMAX(0.0f, fRatio, 1.0f);
fRatio = fRatio * fRatio * (3.0f - 2.0f * fRatio);
return LinearInterpolation(tMin, tMax, fRatio);
}
#endif