I\'d like to have a vector of unique_ptr\'s as a member of a class I\'m making.
class Foo { [...] private: vector> barList;
You can't use unique_ptr in vector because vector implementation strongly relies on values assign operator, which is private in unique_ptr. Use shared_ptr from boost or other smart ptr implementation from C++11.
unique_ptr
shared_ptr