Originariamente inviato da shodan
Il senso del post era un altro.
A ok!!!

Vediamo se lo implementassi così:

codice:
iterator(const iterator &other){ 
diz = other.diz; 
dix = other.dix; 
diy = other.diy; 
cy = other.cy; 
cx = other.cx; 
for(size_type i = 0; i<other.dix; ++i){ //mi muovo su asse x 
for(size_type j = 0; j<other.diy; ++j){ //mi muovo su asse y 
for(size_type z = 0; z<other.diz; ++z){ 
ptr[z][j][i] = other.ptr[z][j][i]; 
} } } }
In modo da fargli fare la copia completa...