In my program I have
stringstream strumien(); //1
stringstream strumien; // 2
strumien<<"napis "<<8<<endl;
and the first line generates the following error
invalid operands of types 'std::stringstream() {aka std::basic_stringstream()}' and 'const char [7]' to binary 'operator<<'
But the second one works properly. (of course always one of them is commented out)
So what is the difference between them? Because I always thought that they are equal definitions of an object.