this does not work:
std::shared_ptr <char[]> ptr(new char[100]);
ptr[10] = '\0';
and this works:
std::unique_ptr <char[]> ptr(new char[100]);
ptr[10] = '\0';
I get compliler error C2676, meaning that "does not define this operator or a conversion to a type acceptable to the predefined operator". Any idea why is it so?