Commit b7e78523 authored by JoeHowse's avatar JoeHowse Committed by Alexander Alekhin

Merge pull request #2046 from JoeHowse/master

Minor changes to the quality module to support Visual Studio 2013 (#2046)

* quality: revise syntax to support Visual C++ 2013

* quality: changes to standardize constness between Visual C++ 2013 and other compilers
parent f2618a4e
......@@ -23,7 +23,12 @@ class CV_EXPORTS_W QualityPSNR
public:
/** @brief Default maximum pixel value */
static CV_CONSTEXPR const double MAX_PIXEL_VALUE_DEFAULT = 255.;
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900/*MSVS 2015*/)
static constexpr double MAX_PIXEL_VALUE_DEFAULT = 255.;
#else
// support MSVS 2013
static const int MAX_PIXEL_VALUE_DEFAULT = 255;
#endif
/**
@brief Create an object which calculates quality via mean square error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment