Search code examples
c++exprtk

Are variables case-sensitive in exprtk?


When I define an expression in my exprtk string, like

var x := sqrt(y);

and I try to add another variable

var X := 2*z;

do I get a conflict? Thanks in advance.


Solution

  • As of March 2017, the author of exprtk has added support for case sensitive variables: https://github.com/ArashPartow/exprtk/blob/master/readme.txt#L4477

    Just include #define exprtk_disable_caseinsensitivity and you are good to go!