diff options
author | Alexander Ried <ried@mytum.de> | 2016-10-18T18·21+0200 |
---|---|---|
committer | Alexander Ried <ried@mytum.de> | 2016-10-18T18·22+0200 |
commit | b05b98df7544d02387f583ca5434f33f3e9cb471 (patch) | |
tree | 4f2c923dc552faed3bf2ea1330d4bf68eda80471 /src/libexpr/names.hh | |
parent | ae8884b94975673e6a3338d2c5173c006b4c8d4b (diff) |
replace own regex class with std::regex
Diffstat (limited to 'src/libexpr/names.hh')
-rw-r--r-- | src/libexpr/names.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/names.hh b/src/libexpr/names.hh index 4b3dcddf70d7..9667fc96fd0f 100644 --- a/src/libexpr/names.hh +++ b/src/libexpr/names.hh @@ -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; |