diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2022-05-16 12:04:58 +0100 |
---|---|---|
committer | Ryan OShea <ryan.oshea3@arm.com> | 2022-05-18 14:27:06 +0100 |
commit | 85edad42b8b76e76c5d969e4bc380b0e8a845c9b (patch) | |
tree | ed836752db0b620340fe5045d698e7caccf562bb /src/backends/reference/workloads/Sqrt.hpp | |
parent | 3570a3896d629a41c4e032880fca193c333dd3cf (diff) | |
download | armnn-85edad42b8b76e76c5d969e4bc380b0e8a845c9b.tar.gz |
Github issue #643 remove use of deprecated standard templates
Remove use of std::unary_function and std::binary_function which were
deprecated in C+11.
Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Change-Id: I9e4624f570b475595c9e28bdf185ddcc2ddceb2f
Diffstat (limited to 'src/backends/reference/workloads/Sqrt.hpp')
-rw-r--r-- | src/backends/reference/workloads/Sqrt.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backends/reference/workloads/Sqrt.hpp b/src/backends/reference/workloads/Sqrt.hpp index e4ff6a4829..ae5afa7bdd 100644 --- a/src/backends/reference/workloads/Sqrt.hpp +++ b/src/backends/reference/workloads/Sqrt.hpp @@ -9,9 +9,12 @@ namespace armnn { - template<typename T> -struct sqrt : public std::unary_function<T, T> +template<typename T> +struct sqrt { + typedef T result_type; + typedef T argument_type; + T operator () (const T& inputData) const { |