After upgrading to the latest version of JUCE, my InputStream related code no longer works. I converted from InputStream * to std::unique_ptr based on the errors I was getting…
std::unique_ptr<InputStream> wi(url.createInputStream(false));
if (wi != nullptr)
{
std::unique_ptr<AudioFormatReader> reader = formatManager.createReaderFor(wi);
but now I’m getting an error saying “call to implicitly deleted copy constructor of ‘std::unique_ptr’” on the createReaderFor call.
The previous version of JUCE I was using was from May 2019. Any advice would be very welcome.