I have what I thought should be a very simple snippet of code to write, though I\'m unable to compile for a reason which I do not understand.
The following simplifie
array decays to pointer, you only need
char* pBuffer = buffer;
Also checkout: std::decay
std::cout << "int[] -> int*; // " << std::boolalpha << std::is_same::type>::value;
Output:
int[] -> int*; // true