Parameters transferred with unique pointers
bringing c++11 branch up to date