avoid gcc mis-interpreting direct-initialization as a function declaration

[SVN r8684]
This commit is contained in:
Jens Maurer
2001-01-21 20:10:36 +00:00
parent ec8aac99c5
commit 49d23c0323

View File

@ -65,7 +65,7 @@ int main(int argc, const char** argv)
std::ifstream fs(argv[i]);
std::string in;
load_file(in, fs);
std::string out_name(std::string(argv[i]) + std::string(".htm"));
std::string out_name = std::string(argv[i]) + std::string(".htm");
std::ofstream os(out_name.c_str());
os << header_text;
// strip '<' and '>' first by outputting to a