From ff6ad98c1ee5291c2c989cea812138caf71a4354 Mon Sep 17 00:00:00 2001 From: mes5k Date: Thu, 3 Feb 2005 16:08:18 +0000 Subject: [PATCH] add std:: prefix to some finds --- include/tclap/ValuesConstraint.h | 2 +- include/tclap/XorHandler.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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