projects
/
platform
/
upstream
/
armnn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0844697
)
Add noexcept to std::hash specialisation for BackendId
author
Matthew Bentham
<Matthew.Bentham@arm.com>
Thu, 5 Dec 2019 10:37:09 +0000
(10:37 +0000)
committer
Derek Lamberti
<derek.lamberti@arm.com>
Fri, 6 Dec 2019 11:24:56 +0000
(11:24 +0000)
This fixes a warning reported by gcc 8.3 with -Wextra
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Change-Id: I5aad9fe201545d8c87ace9d24e53e900289986b8
include/armnn/BackendId.hpp
patch
|
blob
|
history
diff --git
a/include/armnn/BackendId.hpp
b/include/armnn/BackendId.hpp
index
59d4ac1
..
00ece37
100644
(file)
--- 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());