Added cast for specialized function
This commit is contained in:
@ -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>{});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user