What is the proper way to create an unique_ptr that holds an array that is allocated on the free store? Visual studio 2013 supports this by default, but when I use gcc versi
Probably something like the following?
using namespace std; int size = get_size(); int const init_value = 123; unique_ptr p = make_unique(size) fill(p.get(), p.get() + size, init_value);