Skip to content

'expected expression' in parameter.h file #5372

@nosarious

Description

@nosarious

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 )

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions