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

Lazy any #4343

Merged
merged 11 commits into from
Jul 5, 2018
2 changes: 1 addition & 1 deletion src/shogun/base/SGObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class CSGObject
if (!has_parameter(tag))
return false;
const Any value = get_parameter(tag).get_value();
return value.same_type<T>();
return value.has_type<T>();
}

/** Setter for a class parameter, identified by a Tag.
Expand Down