26 auto mapping = [&variables](
const std::string& s) {
27 auto it = std::find(variables.begin(), variables.end(), s);
28 if (it != variables.end()) {
31 variables.push_back(s);
35 return parseFormula<QuantExt::CompiledFormula>(text, mapping);
QuantExt::CompiledFormula parseFormula(const std::string &text, std::vector< std::string > &variables)
Serializable Credit Default Swap.