Io sto cercando di fare la seguente operazione:C++ 11: errore: ‘cominciare’ non è un membro di ‘std’
source = new int[10];
dest = new int[10];
std::copy(std::begin(source), std::end(source), std::begin(dest));
Tuttavia, il compilatore segnala il seguente errore.
copy.cpp:5434:14: error: ‘begin’ is not a member of ‘std’
copy.cpp:5434:44: error: ‘end’ is not a member of ‘std’
copy.cpp:5434:72: error: ‘begin’ is not a member of ‘std’
ho incluso la richiesta <iterator>
intestazione nel codice. Qualcuno può aiutarmi su questo?
Abilitare C++ 11. (compilare) – 0x499602D2