0

I'm evaluating using exprtk to evaluate string expressions (e.g., "a"+"b") an, as such, I've tried to create a std::string parser (exprtk::parser).

This throws out a bunch of errors in compilation about multiple overloaded methods that instantiate to the same signature (parser::operator() and parser::get_variable()).

I haven't found anything in the documentation to do this although it says it handles string types.

How would I be able to do this?

zync
  • 463
  • 3
  • 17
  • It probably just handles `std::string`. If you're using a modern compiler, try this: `"a"s + "b"s` -- if not, try `std::string("a") + "b"` – Clearer Mar 31 '18 at 18:47
  • no code, no errors, only your impressions... how do you want us to find errors in your exposition if you don't give us access to the code or the error messages given by the compiler. Read stackoverflow doc, mainly how to post, because you give no way to make a diagnostic. Nobody shows the error in the question, knowing of its existence, case you know it, you'll have repaired and no question at all should have appeared here. – Luis Colorado Apr 01 '18 at 10:01

0 Answers0