Add noexcept to std::hash specialisation for BackendId
authorMatthew Bentham <Matthew.Bentham@arm.com>
Thu, 5 Dec 2019 10:37:09 +0000 (10:37 +0000)
committerDerek 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

index 59d4ac1..00ece37 100644 (file)
@@ -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());