From 8c768e057d9c8a06d654d641df0979d4a54e9531 Mon Sep 17 00:00:00 2001 From: Juan Pablo Date: Wed, 25 Sep 2013 01:07:11 -0300 Subject: [PATCH] Replaced boost's regex with std's regex --- CMakeLists.txt | 2 +- src/GameData.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b8fa5a96..6d781c99a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ endif() find_package(FreeType REQUIRED) find_package(FreeImage REQUIRED) find_package(SDL2 REQUIRED) -find_package(Boost REQUIRED COMPONENTS system filesystem regex) +find_package(Boost REQUIRED COMPONENTS system filesystem) find_package(Eigen3 REQUIRED) #add ALSA for Linux diff --git a/src/GameData.cpp b/src/GameData.cpp index d6f11ca3e..28c636790 100644 --- a/src/GameData.cpp +++ b/src/GameData.cpp @@ -1,6 +1,6 @@ #include "GameData.h" #include -#include +#include #include #include #include @@ -60,7 +60,7 @@ std::string GameData::getBaseName() const std::string GameData::getCleanName() const { - return regex_replace(mBaseName, boost::regex("\\((.*)\\)|\\[(.*)\\]"), ""); + return regex_replace(mBaseName, std::regex("\\((.*)\\)|\\[(.*)\\]"), ""); } void GameData::incTimesPlayed()