Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Mar 23, 2019

Conversation

JoeHowse
Copy link
Contributor

This pull request makes minor changes to the quality module to support Visual Studio 2013.

@@ -16,7 +16,7 @@ namespace quality_utils
{

// default type of matrix to expand to
static CV_CONSTEXPR const int EXPANDED_MAT_DEFAULT_TYPE = CV_32F;
static CV_CONSTEXPR int EXPANDED_MAT_DEFAULT_TYPE = CV_32F;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please split this by #ifdef too:

#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900/*MSVS 2015*/)
static constexpr const int EXPANDED_MAT_DEFAULT_TYPE = CV_32F;
#else
// support MSVS 2013
static const int EXPANDED_MAT_DEFAULT_TYPE = CV_32F;
#endif

or leave this line unchanged with this patch from main repository: opencv/opencv#14101

Copy link
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@alalek alalek merged commit b7e7852 into opencv:master Mar 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants