namazso / nSkinz

Skin changer for CS:GO
MIT License
220 stars 116 forks source link

'search' is not a member of std #213

Closed drain3r closed 3 years ago

drain3r commented 3 years ago

On line 74 of https://github.com/namazso/nSkinz/blob/master/src/Utilities/Platform.hpp it says std::search I'm using vs2019 to try and compile and it says Error C2039 'search': is not a member of 'std' (compiling source file src\render.cpp) -=-=-=-=-=-= Error C3861 'search': identifier not found (compiling source file src\render.cpp) These both stem from the same line #74 in platform.hpp . Am I missing something? How do I get it to compile even though it says search is not a member of std?

Tipsymario3 commented 3 years ago

Just add "#include " to the start of that file under where it says all the other includes (without the quotations)

Boboguybro commented 3 years ago

Just add "#include " to the start of that file under where it says all the other includes (without the quotations)

Can i ask which line are u talking about?

tuttizpro218 commented 3 years ago

Just add "#include " to the start of that file under where it says all the other includes (without the quotations)

Can i ask which line are u talking about?

#include <algorithm> //add this to platform.hpp

namazso commented 3 years ago

fixed in 893cc0114c624b5aeb6fdee2f445c7acc8807d1e