From db32b970403eaf787ad015f242b8177de3f3f37b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 8 Sep 2016 22:27:49 +0200 Subject: Add missing include array --- src/ClockTAI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ClockTAI.cpp b/src/ClockTAI.cpp index 5f9b750..5e89d9f 100644 --- a/src/ClockTAI.cpp +++ b/src/ClockTAI.cpp @@ -48,6 +48,7 @@ #ifdef HAVE_CURL # include #endif +#include #include #include #include @@ -114,7 +115,7 @@ int ClockTAI::parse_tai_offset() boost::regex regex_bulletin("([0-9]{4}) ([A-Z]{3}) +([0-9]+) =JD +[0-9.]+ +TAI-UTC= *([0-9.]+)"); /* regex groups: Year Month Day Julian date Offset */ - const std::array months{"JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"}; + const std::array months{"JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"}; /* I'm not certain about the format they would use if the day is a two-digit number. Will they keep * two spaces after the month? The regex should be resilient enough in that case. -- cgit v1.2.3