1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 02:01:48 +02:00

replace own regex class with std::regex

This commit is contained in:
Alexander Ried 2016-10-18 20:21:21 +02:00
parent ae8884b949
commit b05b98df75
5 changed files with 14 additions and 94 deletions

View file

@ -3,7 +3,7 @@
#include <memory>
#include "types.hh"
#include "regex.hh"
#include <regex>
namespace nix {
@ -19,7 +19,7 @@ struct DrvName
bool matches(DrvName & n);
private:
std::shared_ptr<Regex> regex;
std::unique_ptr<std::regex> regex;
};
typedef list<DrvName> DrvNames;