Responsive Ad Area

Share This Post

test

How to resolve error C2612 in Visual Studio 2017?

I’m trying to compile a class, which was compiled before in Linux by using GCC as:

Block::Block(Domain& dom, const Index& ind, const unsigned int& size) :
size(size), index(ind), min(ind*size), max((ind+1)*size), domain(dom)
{

But it shows this error at the initializer list line as: error C2059: syntax error: ')' and error C2612: trailing ')' illegal in base/member initializer list.

Any idea how to resolve it?


How to resolve error C2612 in Visual Studio 2017?
How to resolve error C2612 in Visual Studio 2017?
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar