From f9fb9bf7fc4cdd78aaf831df55893b77fc7eb842 Mon Sep 17 00:00:00 2001 From: Tom Lankhorst Date: Wed, 30 Jun 2021 13:03:04 +0200 Subject: [PATCH] Follow-up comment --- include/message_logger/log/log_messages_backend.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/message_logger/log/log_messages_backend.hpp b/include/message_logger/log/log_messages_backend.hpp index 53a626e..d18d127 100644 --- a/include/message_logger/log/log_messages_backend.hpp +++ b/include/message_logger/log/log_messages_backend.hpp @@ -116,10 +116,9 @@ inline const std::string getLogLevel(const message_logger::log::levels::Level& l #ifdef MELO_FUNCTION_PRINTS inline std::string parseMemberName(const std::string& in) { - using namespace boost; // todo: replace with std as soon as gcc 4.9.x is standard in ubuntu repo - regex re(".*((:{2}|\\s)([a-zA-Z0-9]*)(<.*>)?(:{2})|\\s+)([a-zA-Z0-9]+)\\s*(<.*>)?\\s*\\(.*\\).*"); - smatch match; - if(regex_match(in, match, re)) { + std::regex re(".*((:{2}|\\s)([a-zA-Z0-9]*)(<.*>)?(:{2})|\\s+)([a-zA-Z0-9]+)\\s*(<.*>)?\\s*\\(.*\\).*"); + std::smatch match; + if(std::regex_match(in, match, re)) { return colorFunction + "[" + match.str(3) + match.str(5) + match.str(6) + "] "; } return std::string();