Skip to content
Snippets Groups Projects
Commit 1a6c3f01 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

utils: Strings: Fix build on OpenWrt

Fix #438
parent 8a1c53b3
No related branches found
No related tags found
No related merge requests found
......@@ -39,10 +39,10 @@ namespace str
std::string trim( std::string value )
{
value.erase( begin( value ), std::find_if( cbegin( value ), cend( value ), []( char c ) {
value.erase( begin( value ), std::find_if( begin( value ), end( value ), []( char c ) {
return isspace( c ) == false;
}));
value.erase( std::find_if( value.crbegin(), value.crend(), []( char c ) {
value.erase( std::find_if( value.rbegin(), value.rend(), []( char c ) {
return isspace( c ) == false;
}).base(), value.end() );
return value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment