Incomplete type is not allowed: stringstream

pighead10 picture pighead10 · Apr 25, 2011 · Viewed 194.9k times · Source

Why does this line give the error Error: incomplete type is not allowed?

stringstream ss;

Answer

Prasoon Saurav picture Prasoon Saurav · Apr 25, 2011

#include <sstream> and use the fully qualified name i.e. std::stringstream ss;