this code
std::stringstream info();
info << point.x << point.y << point.z << u << v;
OutputDebugString(info.str().c_str());
causes this error
error C2296: '<<' : illegal, left operand has type 'std::stringstream (__cdecl *)(void)'
error C2297: '<<' : illegal, right operand has type 'const float'
error C2228: left of '.str' must have class/struct/union
error C2228: left of '.c_str' must have class/struct/union
though this code (omit parentheses)
std::stringstream info ;
info << point.x << point.y << point.z << u << v;
OutputDebugString(info.str().c_str());
yields no error, but im unconvinced that it is correct. shouldn't they have identical functionality anyway?
whats up? x,y,z are floats