While trying to compile the latest version of MPC-HC (v1.7.3) I am getting an error I have not had before:
SeparableFilter.h(370): error C2059: syntax error : ';'
I get quite a few of these and it all seems to be on lines using the '= delete;' notation.
I am new to this notation however some Googling found it is part of the C++11 standard.
Is there a way to include support for this in VS2012 (using Ultimate, Update 4 currently)? Or is an upgrade to VS2013 required? (I presume it is supported in VS2013 as the MPC-HC developers use Visual C++, so am guessing VS2013!)
UPDATE: As requested, here is the surrounding code:
struct GaussianKernel {
short* kernel;
int width;
int divisor;
inline GaussianKernel(double sigma) {
width = (int)(sigma * 3.0 + 0.5) | 1; // binary-or with 1 to make sure the number is odd
if (width < 3) {
width = 3;
}
kernel = DEBUG_NEW short[width];
kernel[width / 2] = (short)(NormalDist(sigma, 0.0) * 255);
divisor = kernel[width / 2];
for (int x = width / 2 - 1; x >= 0; x--) {
short val = (short)(NormalDist(sigma, width / 2 - x) * 255 + 0.5);
divisor += val * 2;
kernel[x] = val;
kernel[width - x - 1] = val;
}
}
inline ~GaussianKernel() {
delete [] kernel;
}
GaussianKernel(const GaussianKernel&) = delete;
};