Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error on addAttribute method on ofxXmlSettings #1512

camilosw opened this Issue Aug 27, 2012 · 3 comments


None yet
4 participants

I got this error:

error: call of overloaded 'addAttribute(const char [6], const char [2], float)' is ambiguous

This hapened when I call addAttribute in this way:

settings.addAttribute("point", "x", value);

There is a conflict between this addAttribute methods, because the compiler can't figure what of them call:

int addAttribute(const string& tag, const string& attribute, double value, int which = 0);
int addAttribute(const string& tag, const string& attribute, double value);

I'm working in codeblocks on windows.


bilderbuchi commented Aug 27, 2012

thank you, interesting bug. also affects same function with const string& value and int value. Sometimes I wonder why this is not caught by the compiler. @joshuajnoble Seeing as you're currently knee-deep in xml stuff, could you take a look?


ofTheo commented Aug 27, 2012

hmm - shouldn't only the first addAttribute exist?
the second is redundant.


kylemcdonald commented Jun 15, 2013

in preparation for the addition of ofXml with #2084 and deprecation of ofxXmlSettings, i'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment