Replaced sizeof with template parameter N
This commit is contained in:
@ -710,8 +710,7 @@ 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, *readValue,
|
||||||
callerFunctionName, lineNumber, sizeof(readValue),
|
callerFunctionName, lineNumber, N, TypeTag<char>{});
|
||||||
TypeTag<char>{});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user