aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Bentham <Matthew.Bentham@arm.com>2019-12-05 10:37:09 +0000
committerDerek Lamberti <derek.lamberti@arm.com>2019-12-06 11:24:56 +0000
commitfa9a5b757ea1b42ab120aae34699a664a0704b96 (patch)
treecb5b8bd1f16ec6e8a58dadac1b741fbc40ac45a3
parent08446976e3b6ce0e02f22b391b37aacaad181e1a (diff)
downloadarmnn-fa9a5b757ea1b42ab120aae34699a664a0704b96.tar.gz
Add noexcept to std::hash specialisation for BackendId
This fixes a warning reported by gcc 8.3 with -Wextra Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com> Change-Id: I5aad9fe201545d8c87ace9d24e53e900289986b8
-rw-r--r--include/armnn/BackendId.hpp2
1 files changed, 1 insertions, 1 deletions
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<armnn::BackendId>
{
- std::size_t operator()(const armnn::BackendId& id) const
+ std::size_t operator()(const armnn::BackendId& id) const noexcept
{
std::hash<std::string> hasher;
return hasher(id.Get());