ошибка C2039 :'найти' :не является членом 'std'

Я только что столкнулся со странной ошибкой, в которой говорилось, что find не является членом std.

error C2039: 'find' : is not a member of 'std'

error C3861: 'find': identifier not found

По сути, я хочу выяснить, можно ли найти строку в векторе

Любая идея, почему это происходит? помощник по коду сообщает мне, что в std есть метод find.

так что это в основном то, что я сделал:

#include "OperatorUtil.h"
#include <iostream>
#include <string>
#include <stdlib.h>
#include <math.h>
#include <sstream>


using namespace saeConfig;


namespace operatorUtil
{
   bool isIn(const Filter filter, const SearchKey key)
   {

    bool result = false;


    string dimensionStr = key.dimensions.getValue(filter.getFilterKey());
    if(filter.getFilterValues().size()>0)
    {
        vector<string> vstr= filter.getFilterValues();
        std::vector<string>::iterator it;        // Iterator
        it = std::find(vstr.begin(), vstr.end(), dimensionStr);  //ERROR LINE  
        // Check do we have the object in the queue
        if(it == vstr.end())    
        {           
            result =true;
        }
    }

    return result;
   }
}
10
задан Rudy 26 March 2012 в 07:10
поделиться