From c0f0af390e5b78fa816879790bce0b1fd9c32111 Mon Sep 17 00:00:00 2001 From: Francis Murtagh Date: Thu, 26 Mar 2020 12:14:21 +0000 Subject: IVGCVSW-4599 ArmNN Compile Error when compiled against gcc 9 * Use default keyword for armnn::Optional assignment. * Use default keyword for BFloat16 copy constructor and assignment. * Remove unnecessary const from static_cast template argument which was giving ignored-qualifiers warning. Signed-off-by: Francis Murtagh Change-Id: Ie3f4ce0a0c199a578d8cca2fea8f5dcef63dba4d --- include/armnn/Optional.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/armnn/Optional.hpp b/include/armnn/Optional.hpp index 677152636a..1b61e20425 100644 --- a/include/armnn/Optional.hpp +++ b/include/armnn/Optional.hpp @@ -274,6 +274,7 @@ public: Optional() noexcept : BaseSwitch{} {} Optional(const T& value) : BaseSwitch{value} {} + Optional& operator=(const Optional& other) = default; Optional(EmptyOptional empty) : BaseSwitch{empty} {} Optional(const Optional& other) : BaseSwitch{other} {} Optional(const BaseSwitch& other) : BaseSwitch{other} {} -- cgit v1.2.1