Solved: 39 - If Constexpr
This commit is contained in:
@@ -5,8 +5,12 @@
|
||||
namespace cpp17 {
|
||||
|
||||
auto stringify_ints(const std::vector<int>& data) -> std::string {
|
||||
(void)data;
|
||||
return {};
|
||||
auto oss = std::stringstream();
|
||||
for (auto i = 0uz; i < data.size(); ++i) {
|
||||
if (i > 0) oss << ",";
|
||||
oss << data[i];
|
||||
}
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
} // namespace cpp17
|
||||
|
||||
Reference in New Issue
Block a user