JTippetts / accidental-noise-library

Automatically exported from code.google.com/p/accidental-noise-library
Other
81 stars 26 forks source link

MSVC 2010 error C2552: 'dirs' : non-aggregates cannot be initialized with initializer list #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Full error:

error C2552: 'dirs' : non-aggregates cannot be initialized with initializer 
list ..\accidental-noise-library\Imaging\erosion.cpp line 28

Here's the MSDN entry : 
http://msdn.microsoft.com/en-us/library/0s6730bb(v=vs.90).aspx

Using the constructor explicitly works:

    static SDrop dirs[8]=
    {
        SDrop(-1,-1),
        SDrop(0,-1),
        SDrop(1,-1),
        SDrop(-1,0),
        SDrop(1,0),
        SDrop(-1,1),
        SDrop(0,1),
        SDrop(1,1)
    };

I tried to do a commit, but I would probably need permission for that.

Cheers

Original issue reported on code.google.com by uge...@gmx.net on 9 Aug 2013 at 2:37

GoogleCodeExporter commented 9 years ago
Made the requested changes. Thanks for the heads up.

Original comment by vertexno...@gmail.com on 10 Aug 2013 at 1:32