mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-08-07 03:37:30 +00:00
const correctness
This commit is contained in:
@ -32069,7 +32069,7 @@ namespace exprtk
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline T derivative(expression<T>& e,
|
inline T derivative(const expression<T>& e,
|
||||||
T& x,
|
T& x,
|
||||||
const T& h = T(0.00000001))
|
const T& h = T(0.00000001))
|
||||||
{
|
{
|
||||||
@ -32088,7 +32088,7 @@ namespace exprtk
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline T second_derivative(expression<T>& e,
|
inline T second_derivative(const expression<T>& e,
|
||||||
T& x,
|
T& x,
|
||||||
const T& h = T(0.00001))
|
const T& h = T(0.00001))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user