1 | #include <iostream> |
---|---|
2 | #include <Core/Field.h> |
3 | |
4 | |
5 | int main(int, char **) |
6 | { |
7 | using namespace DB; |
8 | |
9 | Field f; |
10 | |
11 | f = Field{String{"Hello, world"}}; |
12 | std::cerr << f.get<String>() << "\n"; |
13 | f = Field{String{"Hello, world!"}}; |
14 | std::cerr << f.get<String>() << "\n"; |
15 | f = Field{Array{Field{String{"Hello, world!!"}}}}; |
16 | std::cerr << f.get<Array>()[0].get<String>() << "\n"; |
17 | f = String{"Hello, world!!!"}; |
18 | std::cerr << f.get<String>() << "\n"; |
19 | f = Array{Field{String{"Hello, world!!!!"}}}; |
20 | std::cerr << f.get<Array>()[0].get<String>() << "\n"; |
21 | f = Array{String{"Hello, world!!!!!"}}; |
22 | std::cerr << f.get<Array>()[0].get<String>() << "\n"; |
23 | |
24 | return 0; |
25 | } |
26 |