diff --git a/include/tclap/ValuesConstraint.h b/include/tclap/ValuesConstraint.h index 9922802..235939c 100644 --- a/include/tclap/ValuesConstraint.h +++ b/include/tclap/ValuesConstraint.h @@ -123,7 +123,7 @@ ValuesConstraint::ValuesConstraint(std::vector& allowed) template bool ValuesConstraint::check( const T& val ) const { - if ( find(_allowed.begin(),_allowed.end(),val) == _allowed.end() ) + if ( std::find(_allowed.begin(),_allowed.end(),val) == _allowed.end() ) return false; else return true; diff --git a/include/tclap/XorHandler.h b/include/tclap/XorHandler.h index 5116119..031f756 100644 --- a/include/tclap/XorHandler.h +++ b/include/tclap/XorHandler.h @@ -103,7 +103,8 @@ inline int XorHandler::check( const Arg* a ) for ( int i = 0; (unsigned int)i < _orList.size(); i++ ) { // if the XOR list contains the arg.. - ArgVectorIterator ait = find( _orList[i].begin(), _orList[i].end(), a ); + ArgVectorIterator ait = std::find( _orList[i].begin(), + _orList[i].end(), a ); if ( ait != _orList[i].end() ) { // go through and set each arg that is not a