user1126444
user1126444

Reputation: 65

DDMathParser in .mm file

In my Xcode project I need to rename my ViewController.m in ViewController.mm , but I also need the DDMathParser.

I compile the parser in the .m file without any errors. But when I compile it in the .mm file I get following errors:

Parse issue at line:

- (DDOperatorAssociativity) associativityForOperator:(NSString *)operator;

"expected identifier"

Upvotes: 3

Views: 259

Answers (1)

Caleb
Caleb

Reputation: 125017

Chage the name of the parameter from operator to anything else. operator is a keyword in C++.

Upvotes: 5

Related Questions