diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-08 22:27:49 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-08 22:27:49 +0200 |
commit | db32b970403eaf787ad015f242b8177de3f3f37b (patch) | |
tree | 2788fea328143290fd3dcdbe316d6c3c17e2e14d | |
parent | e0b501d897c90530df485add40a47864883bd26a (diff) | |
download | dabmux-db32b970403eaf787ad015f242b8177de3f3f37b.tar.gz dabmux-db32b970403eaf787ad015f242b8177de3f3f37b.tar.bz2 dabmux-db32b970403eaf787ad015f242b8177de3f3f37b.zip |
Add missing include array
-rw-r--r-- | src/ClockTAI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <curl/curl.h> #endif +#include <array> #include <string> #include <iostream> #include <algorithm> @@ -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<std::string,12> months{"JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"}; + const std::array<std::string, 12> 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. |