Fixes for standard library changes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -87,7 +87,7 @@ void RegisterGetter(asIScriptEngine* engine, const char* asType, const char* asD
|
||||
}
|
||||
|
||||
#define REGISTER_GETTER(asType, asDef, cType, cFunc) \
|
||||
RegisterGetter<cType, std::result_of<decltype (&cType::cFunc)(cType)>::type, &cType::cFunc>(engine, asType, asDef);
|
||||
RegisterGetter<cType, decltype(std::declval<cType>().cFunc()), &cType::cFunc>(engine, asType, asDef);
|
||||
|
||||
#define REGISTER_EXPLICIT_GETTER(asType, asDef, cType, cFunc, returnType) \
|
||||
RegisterGetter<cType, returnType, &cType::cFunc>(engine, asType, asDef);
|
||||
|
||||
Reference in New Issue
Block a user