From fa9a5b757ea1b42ab120aae34699a664a0704b96 Mon Sep 17 00:00:00 2001 From: Matthew Bentham Date: Thu, 5 Dec 2019 10:37:09 +0000 Subject: Add noexcept to std::hash specialisation for BackendId This fixes a warning reported by gcc 8.3 with -Wextra Signed-off-by: Matthew Bentham Change-Id: I5aad9fe201545d8c87ace9d24e53e900289986b8 --- include/armnn/BackendId.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/armnn/BackendId.hpp b/include/armnn/BackendId.hpp index 59d4ac1d45..00ece377d4 100644 --- a/include/armnn/BackendId.hpp +++ b/include/armnn/BackendId.hpp @@ -147,7 +147,7 @@ namespace std template <> struct hash { - std::size_t operator()(const armnn::BackendId& id) const + std::size_t operator()(const armnn::BackendId& id) const noexcept { std::hash hasher; return hasher(id.Get()); -- cgit v1.2.1