Im making a MIDI generator in C++ using JUCE framework. I'd like to do the generating in a different thread so it won't block my entire program. This is how I make my thread:
std::thread generationThread (&MainContentComponent::generateProgression,var1, var2);
generateProgression is the function that generate's MIDI based on var1 (integer) and var2 (boolean)
The thread is created in the MainContentComponent class, and generateProgression is a function of that class.
The problem is that I'm getting a compile error saying : "Attempt to use a deleted function". Could anyone tell me what I'm doing wrong?