From e5641dfe1e9f8afde21939b62d5b2daea3a50241 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 24 Jan 2017 10:55:28 +0100 Subject: [PATCH] Work around a bug in clang and older versions of gcc http://hydra.nixos.org/build/46597440 https://llvm.org/bugs/show_bug.cgi?id=28096 --- src/libutil/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/util.cc b/src/libutil/util.cc index e94575828..52608ac2a 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1246,7 +1246,7 @@ std::unique_ptr createInterruptCallback(std::function res->it = interruptCallbacks->end(); res->it--; - return res; + return std::unique_ptr(res.release()); } }