Breaking encapsulation of classes to expose internal state, is always a source for potential errors.
STL had to do this to allow communication with C's lower level strings and arrays. And here's how you can mess things up when using std::string.
STL had to do this to allow communication with C's lower level strings and arrays. And here's how you can mess things up when using std::string.