soul-lang / SOUL

The SOUL programming language and API
Other
1.71k stars 96 forks source link

Illegal indirection (C2100 ) compiler error in `3rdParty/choc/audio/choc_SampleBuffers.h` #70

Open Jaytheway opened 3 years ago

Jaytheway commented 3 years ago

Hi, visual studio spits out this error in reference to this line: https://github.com/soul-lang/SOUL/blob/2f8f74e8efae005e6f1e6d5f4f11b5ae22104143/include/soul/3rdParty/choc/audio/choc_SampleBuffers.h#L472

It's not the case in choc repo:

if (size.numChannels == 0)
{
    void** allocated = new void*[1];
    *allocated = allocated;
    return { reinterpret_cast<SampleType* const*> (allocated), 0 };
}