Skip to content
Snippets Groups Projects
Commit 2336ac2d authored by René Fritze's avatar René Fritze
Browse files

fixup couple of naming issues

parent 87071c47
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ namespace Common { ...@@ -45,7 +45,7 @@ namespace Common {
template <class StlSequence> template <class StlSequence>
inline int getIdx(const StlSequence& ct, const typename StlSequence::value_type& val) inline int getIdx(const StlSequence& ct, const typename StlSequence::value_type& val)
{ {
auto result = std::find(ct.begin(), ct.end(), val); const auto result = std::find(ct.begin(), ct.end(), val);
if (result == ct.end()) if (result == ct.end())
return -1; return -1;
return std::distance(ct.begin(), result); return std::distance(ct.begin(), result);
......
...@@ -186,6 +186,7 @@ private: ...@@ -186,6 +186,7 @@ private:
INVERSE_VALIDATE(ValidateNone, ValidateAny); INVERSE_VALIDATE(ValidateNone, ValidateAny);
INVERSE_VALIDATE(ValidateGreaterOrEqual, ValidateLess); INVERSE_VALIDATE(ValidateGreaterOrEqual, ValidateLess);
INVERSE_VALIDATE(ValidateNotLess, ValidateLess);
//! validate arg iff arg \in [min,max] //! validate arg iff arg \in [min,max]
template <class T> template <class T>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment