Is there a way to inspect the value ( .str()
) of std::ostringstream when debugging in VS2005? Like modifying the autoexp.dat file to make stringstream value visualizable?
Asked
Active
Viewed 1,100 times
2

Stan
- 37,207
- 50
- 124
- 185
1 Answers
2
You have to dig a little deeper into the stringstream's base-classes.
This usually works for me while debugging in VS9:
(*(((*(std::basic_ios<char,std::char_traits<char> >*)(&(*(std::basic_istream<char,std::char_traits<char> >*)(&(*(std::basic_iostream<char,std::char_traits<char> >*)(&YOUR_STRINGSTREAM_INSTANCE)))))))._Mystrbuf))._Gfirst

tsotso
- 322
- 1
- 2
- 9