I have the following C++ code
#include <iostream> int main() { std::string sText = "These are words in my string!"; std::string sWord; std::stringstream ss(sText); }
And it works fine on Fedora with g++. However, running it on Windows with Visual Studio (so I guess clang) gets incomplete type is not allowed
. Is this an error with my code, or is there some difference between compilers? Note: I've tried std::stringstream ss << sText;
but that gets the same exact error.
没有评论:
发表评论