From 8ab9b428966d408ce3b4d1212f4425b53aae3481 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Sat, 4 Aug 2018 14:05:19 +0800 Subject: [PATCH] Fix constexpr on VS 2015 --- src/api/processor/disparity_normalized_processor.cc | 3 +++ src/api/processor/disparity_normalized_processor.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/processor/disparity_normalized_processor.cc b/src/api/processor/disparity_normalized_processor.cc index fa13844..0ce2a9a 100644 --- a/src/api/processor/disparity_normalized_processor.cc +++ b/src/api/processor/disparity_normalized_processor.cc @@ -21,6 +21,9 @@ MYNTEYE_BEGIN_NAMESPACE +const char DisparityNormalizedProcessor::NAME[] = + "DisparityNormalizedProcessor"; + DisparityNormalizedProcessor::DisparityNormalizedProcessor( std::int32_t proc_period) : Processor(std::move(proc_period)) { diff --git a/src/api/processor/disparity_normalized_processor.h b/src/api/processor/disparity_normalized_processor.h index a66d078..779f1f7 100644 --- a/src/api/processor/disparity_normalized_processor.h +++ b/src/api/processor/disparity_normalized_processor.h @@ -23,7 +23,7 @@ MYNTEYE_BEGIN_NAMESPACE class DisparityNormalizedProcessor : public Processor { public: - static constexpr auto &&NAME = "DisparityNormalizedProcessor"; + static const char NAME[]; explicit DisparityNormalizedProcessor(std::int32_t proc_period = 0); virtual ~DisparityNormalizedProcessor();