android - No matching function for std::find() in eclipse. Works fine in XCode -


i"m running eclipse head scratcher. have trying check see if string in std::vector called multiplayername. call

 if (std::find(multiplayernames.begin(), multiplayernames.end(), username) == multiplayernames.end()) { //blah blah } 

to it, works find in xcode, gives me

no matching function call 'find(std::vector<std::basic_string<char> >::iterator, std::vector<std::basic_string<char> >::iterator, std::string&) 

error in eclipse. assume issue how have eclipse set up.

currently, have

app_stl := gnustl_static

in application.mk , i'm using ndk8b both xcode , eclipse. else need fix working?

you'll need include header declares std::find

#include <algorithm> 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -