Skip to content

Commit

Permalink
Fixed std::not1 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
danielga committed Aug 26, 2018
1 parent d7ed48a commit 8f14b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static Detouring::Hook HandleClientLuaError_detour;
inline std::string Trim( const std::string &s )
{
std::string c = s;
auto not_isspace = std::not1( std::function<int( int )>( isspace ) );
auto not_isspace = std::not_fn( isspace );
// remote trailing "spaces"
c.erase( std::find_if( c.rbegin( ), c.rend( ), not_isspace ).base( ), c.end( ) );
// remote initial "spaces"
Expand Down

0 comments on commit 8f14b7e

Please sign in to comment.