do not call copy_n with nullptr on VC++ 2013