please demonstrate how to execute std::copy of a multidimensional array with a simple 1-liner. i attempted it briefly and failed.
please demonstrate how to execute std::copy of a multidimensional array with a simple 1-liner. i attempted it briefly and failed.
I admit it's a bit of a hack, but since we ARE using C arrays (damn, I hate it that support for initializer lists do not exist in VC++ >_<), this should be fine.
Use reinterpret_cast to really pedantic.Code:std::copy((T*)data, (T*)data + (Rows * Columns), mem);
well, that works just fine. i swore i tried casting to T* just like that and i got a compile error in xutility. clearly i made an error somewhere.