std::unique_ptr going out of scope causes access violation?

Printable View