Talk:cpp/experimental/basic string view/data
From cppreference.com
< Talk:cpp
Why is this function present in the proposal when not c_str() is ?
It would be locical in C++03 when std::basic_string::data() was not guaranteed to return a nullterminated character array, but since C++11 the functions are equivalent and thus data() should have the same "problems" as c_str() (e.g. dangerous in a generic function)