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();

https://docs.juce.com/develop/classSlider.html#a288c6f5c7a76100a1e7526e002e10eb5

float AudioParameterFloat::get();

https://docs.juce.com/develop/classAudioParameterFloat.html#a5dfe7c0b452beac16f139029d83106c5

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