Added cast for specialized function

This commit is contained in:
2025-06-17 09:24:20 +02:00
parent d395c7bbb7
commit b1fe452ed6

View File

@ -598,8 +598,9 @@ asynStatus getAxisParamImpl(A *axis, C *controller, const char *indexName,
int (C::*func)(), bool *readValue,
const char *callerFunctionName, int lineNumber,
TypeTag<bool>) {
return getAxisParamImpl(axis, indexName, func, (int *)readValue,
callerFunctionName, lineNumber);
return getAxisParamImpl(axis, indexName, func,
static_cast<int *>(readValue), callerFunctionName,
lineNumber);
}
template <typename A, typename C>
@ -704,8 +705,9 @@ template <typename A, typename C, size_t N>
asynStatus getAxisParam(A *axis, C *controller, const char *indexName,
int (C::*func)(), char (*readValue)[N],
const char *callerFunctionName, int lineNumber) {
return getAxisParamImpl(axis, controller, indexName, func, readValue,
callerFunctionName, lineNumber, TypeTag<char>{});
return getAxisParamImpl(axis, controller, indexName, func,
static_cast<char *>(readValue), callerFunctionName,
lineNumber, TypeTag<char>{});
}
/**