diff options
author | Pablo Marquez Tello <pablo.tello@arm.com> | 2021-03-18 11:31:13 +0000 |
---|---|---|
committer | Pablo Marquez Tello <pablo.tello@arm.com> | 2021-03-23 14:52:43 +0000 |
commit | 383de02788f8edf0d8474890018fdd97c6eadd3f (patch) | |
tree | fdf36d2a4131cb3b16932489c61559c6c31c3031 /arm_compute/core/Types.h | |
parent | 049989a103912f43d377591ed177eafaefe10877 (diff) | |
download | ComputeLibrary-383de02788f8edf0d8474890018fdd97c6eadd3f.tar.gz |
Fixed compiler errors
* Some compilers fail to build due to the inconsistent use of the noexcept clause
Change-Id: I1f44abec84d8d0c8dd45662d1e309d006dcf9b64
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5281
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Reviewed-by: Manuel Bottini <manuel.bottini@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/Types.h')
-rw-r--r-- | arm_compute/core/Types.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arm_compute/core/Types.h b/arm_compute/core/Types.h index 5c897b9110..a2ad51526b 100644 --- a/arm_compute/core/Types.h +++ b/arm_compute/core/Types.h @@ -273,14 +273,20 @@ enum class BorderMode struct BorderSize { /** Empty border, i.e. no border */ - constexpr BorderSize() - : top{ 0 }, right{ 0 }, bottom{ 0 }, left{ 0 } + constexpr BorderSize() noexcept + : top{ 0 }, + right{ 0 }, + bottom{ 0 }, + left{ 0 } { } /** Border with equal size around the 2D plane */ - explicit constexpr BorderSize(unsigned int size) - : top{ size }, right{ size }, bottom{ size }, left{ size } + explicit constexpr BorderSize(unsigned int size) noexcept + : top{ size }, + right{ size }, + bottom{ size }, + left{ size } { } |