Skip to content

Commit 8189036

Browse files
committed
filter_base.hpp: use unsigned long instead of size_t in getParam 2nd parameter
* it was added in: 25c7d30 but unfortunately on 32bit systems size_t could be the same as unsigned int already defined above and then the build fails with: | filters/2.0.0-1-r0/git/include/filters/filter_base.hpp:219:8: error: 'bool filters::FilterBase<T>::getParam(const string&, size_t&)' cannot be overloaded with 'bool filters::FilterBase<T>::getParam(const string&, unsigned int&)' | 219 | bool getParam(const std::string & name, size_t & value) | | ^~~~~~~~ | filters/2.0.0-1-r0/git/include/filters/filter_base.hpp:201:8: note: previous declaration 'bool filters::FilterBase<T>::getParam(const string&, unsigned int&)' | 201 | bool getParam(const std::string & name, unsigned int & value) | | ^~~~~~ Signed-off-by: Martin Jansa <[email protected]>
1 parent 9cff784 commit 8189036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: include/filters/filter_base.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ class FilterBase
212212
}
213213

214214
/**
215-
* \brief Get a filter parameter as a size_t
215+
* \brief Get a filter parameter as an unsigned long
216216
* \param name The name of the parameter
217217
* \param value The int to set with the value
218218
* \return Whether or not the parameter of name/type was set */
219-
bool getParam(const std::string & name, size_t & value)
219+
bool getParam(const std::string & name, unsigned long & value)
220220
{
221221
int signed_value;
222222
if (!getParam(name, signed_value)) {

0 commit comments

Comments
 (0)