diff options
author | Matthew Bentham <Matthew.Bentham@arm.com> | 2019-12-05 10:37:09 +0000 |
---|---|---|
committer | Derek Lamberti <derek.lamberti@arm.com> | 2019-12-06 11:24:56 +0000 |
commit | fa9a5b757ea1b42ab120aae34699a664a0704b96 (patch) | |
tree | cb5b8bd1f16ec6e8a58dadac1b741fbc40ac45a3 | |
parent | 08446976e3b6ce0e02f22b391b37aacaad181e1a (diff) | |
download | armnn-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.hpp | 2 |
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()); |