Commit 1f1754e5 authored by Kenton Varda's avatar Kenton Varda

AAAARRRGGHHHHHH worst change in C++11.

parent e235866b
...@@ -1091,7 +1091,7 @@ template <typename Func> ...@@ -1091,7 +1091,7 @@ template <typename Func>
class Deferred { class Deferred {
public: public:
inline Deferred(Func func): func(func), canceled(false) {} inline Deferred(Func func): func(func), canceled(false) {}
inline ~Deferred() { if (!canceled) func(); } inline ~Deferred() noexcept(false) { if (!canceled) func(); }
KJ_DISALLOW_COPY(Deferred); KJ_DISALLOW_COPY(Deferred);
// This move constructor is usually optimized away by the compiler. // This move constructor is usually optimized away by the compiler.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment