Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

std::_bind is not compatible with std::function #7

@SmartyNance

Description

@SmartyNance

if (error == AAUDIO_ERROR_DISCONNECTED){
std::function<void(void)>

restartFunction = std::bind(&AudioEngine::restart,
static_cast<AudioEngine *>(userData));

        new std::thread(restartFunction);
}

Went over the whole file multiple times, and I can't find any difference from what is in your tutorial, but the block of text in the middle always shows an error

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