use cout instead of stringstream

release/4.3a0
Varun Agrawal 2024-10-08 23:55:19 -04:00
parent 4df266ad64
commit 436524a4df
1 changed files with 3 additions and 4 deletions

View File

@ -78,10 +78,9 @@ void HybridGaussianProductFactor::print(const std::string& s,
};
Base::print(s, formatter, printer);
if (!keys.empty()) {
std::stringstream ss;
ss << s << " Keys:";
for (auto&& key : keys) ss << " " << formatter(key);
std::cout << ss.str() << "." << std::endl;
std::cout << s << " Keys:";
for (auto&& key : keys) std::cout << " " << formatter(key);
std::cout << "." << std::endl;
}
}