Syntax change to allow building on older compilers



Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I7148c25679a8a919c6138df6b23d0129e8ddd0a5
diff --git a/src/armnn/layers/MeanLayer.cpp b/src/armnn/layers/MeanLayer.cpp
index 62a39237..8e6d9e0 100644
--- a/src/armnn/layers/MeanLayer.cpp
+++ b/src/armnn/layers/MeanLayer.cpp
@@ -77,7 +77,8 @@
 
     const TensorShape& input = inputShapes[0];
 
-    if (auto inputDims = input.GetNumDimensions(); inputDims != std::clamp(inputDims, 1u, 4u))
+    auto inputDims = input.GetNumDimensions();
+    if (inputDims != std::clamp(inputDims, 1u, 4u))
     {
         throw armnn::Exception("ReduceLayer: Reduce supports up to 4D input.");
     }