mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix example
This commit is contained in:
parent
b75d56ad9b
commit
2b6724c5e3
@ -37,7 +37,7 @@ int main(int argc, char ** argv)
|
||||
std::cerr << applyVisitor(to_string, field) << std::endl;
|
||||
}
|
||||
|
||||
get<Array &>(field).push_back(field);
|
||||
field.get<Array &>().push_back(field);
|
||||
std::cerr << applyVisitor(to_string, field) << std::endl;
|
||||
|
||||
std::cerr << (field < field2) << std::endl;
|
||||
@ -71,7 +71,7 @@ int main(int argc, char ** argv)
|
||||
|
||||
size_t sum = 0;
|
||||
for (size_t i = 0; i < n; ++i)
|
||||
sum += safeGet<const String &>(array[i]).size();
|
||||
sum += array[i].safeGet<const String &>().size();
|
||||
|
||||
watch.stop();
|
||||
std::cerr << std::fixed << std::setprecision(2)
|
||||
|
Loading…
Reference in New Issue
Block a user