Skip to content

Commit e97c5c8

Browse files
authored
Merge pull request #1244 from cppalliance/fix_example
Fix undefined type
2 parents 86380bd + 8e1bcfa commit e97c5c8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/statistics.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,18 @@
4141
# pragma GCC diagnostic pop
4242
#endif
4343

44+
using boost::decimal::decimal64_t;
45+
4446
// This struct holds all the information that is provided
4547
// for a single trading day
4648
struct daily_data
4749
{
4850
std::string date;
49-
boost::decimal::decimal64_t open;
50-
boost::decimal::decimal64_t high;
51-
boost::decimal::decimal64_t low;
52-
boost::decimal::decimal64_t close;
53-
boost::decimal::decimal64_t volume;
51+
decimal64_t open;
52+
decimal64_t high;
53+
decimal64_t low;
54+
decimal64_t close;
55+
decimal64_t volume;
5456
};
5557

5658
auto parse_csv_line(const std::string& line) -> daily_data

0 commit comments

Comments
 (0)