When I use the second constructor, I receive an error saying: incomplete type is not allowed
This is my code:
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
using std::stringbuf;
using std::string;
using std::ios_base;
int main( )
{
string Buffer( "Sample String" );
stringbuf StringBuffer( Buffer ); // Error: incomplete type is not allowedreturn 0;
}
Any ideas?
Also, is it worth learning about stringbuf, filebuf, and streambuf?