From 5c1183aa377ae8de487d5541360369ebd2ee0f6b Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 28 Nov 2016 14:54:43 +0100 Subject: Executor: Fix undefined behavior C++17 introduces new requirements on the template parameters of std::priority_queue. Task-number: QBS-1051 Change-Id: I9a22b8f2d3c1f0bd532b0a76f5d2a16bebc303f7 Reviewed-by: Raphael Kubo da Costa Reviewed-by: Joerg Bornemann --- src/lib/corelib/buildgraph/executor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/corelib/buildgraph/executor.h b/src/lib/corelib/buildgraph/executor.h index 1f6bfc7de..a1bb26c05 100644 --- a/src/lib/corelib/buildgraph/executor.h +++ b/src/lib/corelib/buildgraph/executor.h @@ -107,7 +107,8 @@ private: bool operator() (const BuildGraphNode *x, const BuildGraphNode *y) const; }; - typedef std::priority_queue, ComparePriority> Leaves; + typedef std::priority_queue, + ComparePriority> Leaves; void doBuild(); void prepareAllNodes(); -- cgit v1.2.3