diff --git a/include/aidge/graph/Matching.hpp b/include/aidge/graph/Matching.hpp
index 004011481f6f72e5176c6a00634d34e9569c65ad..354eaa5752a933bbd755531edf5c93f15f995774 100644
--- a/include/aidge/graph/Matching.hpp
+++ b/include/aidge/graph/Matching.hpp
@@ -172,7 +172,7 @@ private:
         str.erase(str.begin(),
             std::find_if(str.begin(),
                         str.end(),
-                        std::not1(std::ptr_fun<int, int>(std::isspace))));
+                        [](char c) { return !std::isspace(c); }));
     }
 };
 }  // namespace Aidge