write char* converted from void * in stringstream

Feb 2, 2017 at 12:00pm
i am trying to first convert void* which conatained publish data into char * and then i am trying to put it in stringstream .The whole scenario is run in diffrent threads fired in milliseconds.Most of the time the data is not written on the string stream but i can print the characters.Can you please tell me a way of put this char* data in the stringstream
Thanks
Feb 2, 2017 at 4:41pm
If you "know" it points to a char array, use static_cast.
Last edited on Feb 2, 2017 at 4:42pm
Topic archived. No new replies allowed.