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,
|
int (C::*func)(), bool *readValue,
|
||||||
const char *callerFunctionName, int lineNumber,
|
const char *callerFunctionName, int lineNumber,
|
||||||
TypeTag<bool>) {
|
TypeTag<bool>) {
|
||||||
return getAxisParamImpl(axis, indexName, func, (int *)readValue,
|
return getAxisParamImpl(axis, indexName, func,
|
||||||
callerFunctionName, lineNumber);
|
static_cast<int *>(readValue), callerFunctionName,
|
||||||
|
lineNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename A, typename C>
|
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,
|
asynStatus getAxisParam(A *axis, C *controller, const char *indexName,
|
||||||
int (C::*func)(), char (*readValue)[N],
|
int (C::*func)(), char (*readValue)[N],
|
||||||
const char *callerFunctionName, int lineNumber) {
|
const char *callerFunctionName, int lineNumber) {
|
||||||
return getAxisParamImpl(axis, controller, indexName, func, readValue,
|
return getAxisParamImpl(axis, controller, indexName, func,
|
||||||
callerFunctionName, lineNumber, TypeTag<char>{});
|
static_cast<char *>(readValue), callerFunctionName,
|
||||||
|
lineNumber, TypeTag<char>{});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user