Hello! For several days now I can’t understand why this error occurs, everything seems to be correct. Maybe someone has come across or knows what could be the matter?
error:
“No matching constructor for initialization of ‘juce::AudioProcessorValueTreeState::ButtonAttachment’”
in this code:
TrigButtons::TrigButtons (SamplerpluginAudioProcessor& p) : processor(p)
{
for(int i=0; i<numOfButtons; i++)
{
auto newButton = new ToggleButton { };
buttons.add(newButton);
addAndMakeVisible(buttons[i]);
std::unique_ptr<juce::AudioProcessorValueTreeState::ButtonAttachment> btnAttch
{
std::make_unique<juce::AudioProcessorValueTreeState::ButtonAttachment> (p.getApvts(), std::to_string(i), buttons[i])
};
}
}
I would really appreciate any help! Thanks for answers