I have read a disk file into memory into an array declared as by:
char * buffer = new char [length];
then reinterpreted the array:
std::string strbuf(reinterpret_cast<const char *>(buffer), length);
and immediately check the type of the string provided.
cout << "buffer is: " << typeid(buffer).name() << '\n';
cout << "strbuf is: " << typeid(strbuf).name() << '\n';
buffer is: Pc
strbuf is: Ss */
As you can read, the string "strbuf" is of type Ss. What does that mean?