From f004b8c1ff6be1c869d376dbe092363b86714275 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Sat, 19 Sep 2020 16:43:51 +0300 Subject: [PATCH] Attempt to fix windows build --- lib/libstereo/src/filters/salient_gradient.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libstereo/src/filters/salient_gradient.hpp b/lib/libstereo/src/filters/salient_gradient.hpp index 10ca19b11..43454264f 100644 --- a/lib/libstereo/src/filters/salient_gradient.hpp +++ b/lib/libstereo/src/filters/salient_gradient.hpp @@ -70,7 +70,7 @@ struct SalientGradient { } __device__ void operator()(ushort2 thread, ushort2 stride, ushort2 size, WarpSharedMemory &wsm) { - static const float PI = 3.14f; + static constexpr float PI = 3.14f; static constexpr float PI2 = PI/2.0f; for (int y=thread.y; y<size.y; y+=stride.y) { @@ -177,7 +177,7 @@ struct SalientGradientGrouped { } __device__ void operator()(ushort2 thread, ushort2 stride, ushort2 size, WarpSharedMemory &wsm) { - static const float PI = 3.14f; + static constexpr float PI = 3.14f; static constexpr float PI2 = PI/2.0f; for (int y=thread.y; y<size.y; y+=stride.y) { -- GitLab