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:
parent
ae8884b949
commit
b05b98df75
5 changed files with 14 additions and 94 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue