Hi, I’ve started getting rid of this, but am having a particular issue. This was my old code:
MidiFile mf; if ( ScopedPointer<FileOutputStream> p_os = outf.createOutputStream() ) mf.writeTo( *p_os, 0 );
Which I’m trying to replace with (I think):
if ( auto p_os = std::make_unique<FileOutputStream *>( outf.createOutputStream() ) ) mf.writeTo( **p_os.get(), 0 );
Which just seems wrong a very ugly. Is there a better way of dealing with this?