Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'expected expression' in parameter.h file #5372

Open
nosarious opened this issue Nov 29, 2016 · 1 comment
Open

'expected expression' in parameter.h file #5372

nosarious opened this issue Nov 29, 2016 · 1 comment

Comments

@nosarious
Copy link

nosarious commented Nov 29, 2016

I'm trying to run the examples in this addon: https://github.com/patriciogonzalezvivo/ofxVoro

when I do so I am getting two error messages indication "expected expression" in parameter.h

Specifically at line 356 and 363.

template <typename T>
struct has_loading_support {
	static istream & stream;
	static T & x;
	static const bool value = sizeof(check(stream >> x)) == sizeof(yes);
};                                                                                         **^ expected expression

template <typename T>
struct has_saving_support {
	static ostream & stream;
	static T & x;
	static const bool value = sizeof(check(stream << x)) == sizeof(yes);
};                                                                                          **^expected expression

this error showed up with someone else addon, but I don't know how to use their solution:

https://forum.openframeworks.cc/t/compilation-errors-in-ofparameter-h/22708
Is there a problem with parameter.h?

So far I have updated to of 0.9.8, used the project generator to create a blank project with ofxVoro as an addon, copied the src files from the example (flock and tissue) and the same error results.

(update: this forum question mentions it was fixed, but I just got it...? https://forum.openframeworks.cc/t/ofparameter-h-compile-error/21222 )

@bakercp
Copy link
Member

bakercp commented May 23, 2017

Can you try this with a nightly build our the master branch?

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

No branches or pull requests

2 participants