about summary refs log tree commit diff
path: root/src/libutil/lru-cache.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-02-12T12·43+0100
committerEelco Dolstra <edolstra@gmail.com>2019-03-14T13·10+0100
commitef52ccf035fe0bcd78226891022171a28dd6fcbe (patch)
tree25ca43089e573e826fd8341a2a436a93076c26d8 /src/libutil/lru-cache.hh
parent86f3b94c8c28defd7402245d60af15ce429986ff (diff)
experimental/optional -> optional
Diffstat (limited to 'src/libutil/lru-cache.hh')
-rw-r--r--src/libutil/lru-cache.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/lru-cache.hh b/src/libutil/lru-cache.hh
index 9b8290e634..8b83f842c3 100644
--- a/src/libutil/lru-cache.hh
+++ b/src/libutil/lru-cache.hh
@@ -2,7 +2,7 @@
 
 #include <map>
 #include <list>
-#include <experimental/optional>
+#include <optional>
 
 namespace nix {
 
@@ -64,7 +64,7 @@ public:
 
     /* Look up an item in the cache. If it exists, it becomes the most
        recently used item. */
-    std::experimental::optional<Value> get(const Key & key)
+    std::optional<Value> get(const Key & key)
     {
         auto i = data.find(key);
         if (i == data.end()) return {};