How to convert std::make_unique<AudioProcessorValueTreeState::SliderAttachment> into a double or float Value?

Hi, I’m trying to get a double or float value from a Slider that use std::make_unique<AudioProcessorValueTreeState::SliderAttachment>, I already used *tree.getRawParameterValue But I got the error “Member reference base type ‘bool’ is not a structure or union”. I look for a solution and I found this std::make_unique<AudioParameterFloat> but honestly I don’t know how to implement this into my code. Should I code like std::make_unique<AudioParameterFloat::SliderAttachment>
instead of std::make_unique<AudioProcessorValueTreeState::SliderAttachment> ?

Hey there. how much C++ do you know? All of your questions indicate that you are brand new to C++

You have 2 choices to get a value out of a Slider or Audio Parameter:

double Slider::getValue();

float AudioParameterFloat::get();

take your pick of which one to use to get the slider’s value, or the parameters value.