diff options
author | Francis Murtagh <francis.murtagh@arm.com> | 2020-03-26 12:14:21 +0000 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2020-03-26 14:31:59 +0000 |
commit | c0f0af390e5b78fa816879790bce0b1fd9c32111 (patch) | |
tree | 5bce27d9535e17db942577d570d10de3ac3793f6 /include | |
parent | a10e2a26b20b124aaa03f20554172d88683257f7 (diff) | |
download | armnn-c0f0af390e5b78fa816879790bce0b1fd9c32111.tar.gz |
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 <francis.murtagh@arm.com>
Change-Id: Ie3f4ce0a0c199a578d8cca2fea8f5dcef63dba4d
Diffstat (limited to 'include')
-rw-r--r-- | include/armnn/Optional.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
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} {} |