I am very new to C++ and i was wondering if std::string str(array.begin(), array.end()) is adding a null character on its own at the end of the string? I looked up this reference but i could not figure it out. I appreciate your answers!
Edit:
I am using C++11 and I have an boost::array<u_int8_t> of uknown size. My goal ist to print it afterwards with str.c_str() because %s is expecting a char*.
str = std::string(arr.begin(),arr.end());
ROS_INFO("Got response: \n %s", str.c_str());