Pass ranges by value

This commit is contained in:
Victor Zverovich
2018-01-14 08:13:48 -08:00
parent 22994c62f7
commit 217e7c76f1
10 changed files with 169 additions and 136 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ struct formatter<std::tm> {
}
void format(const std::tm &tm, context &ctx) {
buffer &buf = ctx.range();
buffer &buf = ctx.range().container();
std::size_t start = buf.size();
for (;;) {
std::size_t size = buf.capacity() - start;