diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-10 08:30:21 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-10 08:30:21 +0100 |
commit | 8d4c21193437882c7cb4cb8245aa80f9d8d7c084 (patch) | |
tree | 694d0750438df74621d7f997ec300cbec14d20d3 /src/etisnoop.cpp | |
parent | 6e8d21f63be63a76dfcefc9911c487ce50491721 (diff) | |
download | etisnoop-8d4c21193437882c7cb4cb8245aa80f9d8d7c084.tar.gz etisnoop-8d4c21193437882c7cb4cb8245aa80f9d8d7c084.tar.bz2 etisnoop-8d4c21193437882c7cb4cb8245aa80f9d8d7c084.zip |
Remove boost dependency
Diffstat (limited to 'src/etisnoop.cpp')
-rw-r--r-- | src/etisnoop.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/etisnoop.cpp b/src/etisnoop.cpp index b94d0d7..1547af3 100644 --- a/src/etisnoop.cpp +++ b/src/etisnoop.cpp @@ -41,7 +41,7 @@ #include <string.h> #include <cinttypes> #include <string> -#include <boost/regex.hpp> +#include <regex> #include <sstream> #include <time.h> #include <signal.h> @@ -144,9 +144,9 @@ int main(int argc, char *argv[]) case 'F': { const string type_ext(optarg); - const boost::regex regex("^([0-9]+)/([0-9]+)$"); - boost::smatch match; - bool is_match = boost::regex_search(type_ext, match, regex); + const std::regex regex("^([0-9]+)/([0-9]+)$"); + std::smatch match; + bool is_match = std::regex_search(type_ext, match, regex); if (not is_match) { fprintf(stderr, "Incorrect -F format\n"); return 1; |