How to use AudioFormatWriterOptions?

I had some old but working code, I’m trying to get all warnings cleared. Stuck on this deprecated createWriterFor. It says, use the one with AudioFormatWriterOptions. But that newer one also wants a std::unique_ptr<juce::FileOutputStream>, how would I make one of those?
I’ve tried:

std::unique_ptr<juce::FileOutputStream> fos = std::make_unique (juce::FileOutputStream (juce::File (fileName)));

but it says “No matching function for call to make_unique”.

Never mind I had to fill in the template type for make_unique