Skip to content

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

@Jaytheway

Description

@Jaytheway

Hi, visual studio spits out this error in reference to this line:

auto allocated = new void*[1];

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 };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions