We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86380bd commit 8e1bcfaCopy full SHA for 8e1bcfa
examples/statistics.cpp
@@ -41,16 +41,18 @@
41
# pragma GCC diagnostic pop
42
#endif
43
44
+using boost::decimal::decimal64_t;
45
+
46
// This struct holds all the information that is provided
47
// for a single trading day
48
struct daily_data
49
{
50
std::string date;
- boost::decimal::decimal64_t open;
- boost::decimal::decimal64_t high;
51
- boost::decimal::decimal64_t low;
52
- boost::decimal::decimal64_t close;
53
- boost::decimal::decimal64_t volume;
+ decimal64_t open;
+ decimal64_t high;
+ decimal64_t low;
54
+ decimal64_t close;
55
+ decimal64_t volume;
56
};
57
58
auto parse_csv_line(const std::string& line) -> daily_data
0 commit comments