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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -