Is it reasonable to use std::basic_string as a contiguous buffer when targeting C++03?
I’d consider it quite safe to assume that std::string allocates its storage contiguously. At the present time, all known implementations of std::string allocate space contiguously. Moreover, the current draft of C++ 0x (N3000) [Edit: Warning, direct link to large PDF] requires that the space be allocated contiguously (§21.4.1/5): The char-like objects in a basic_string object … Read more