boost :: interprocess :: string has the standard c_str () method. I found it here :
const CharT* c_str() const
{ return containers_detail::get_pointer(this->priv_addr()); }
(This for basic_string. stringIs an instance of the template in which the template parameter CharTis equal char.)
In addition, the documentation here says
basic_string - std:: basic_string , . - , ...