Support GCC 11

This commit is contained in:
Dan Paulat 2023-04-20 00:27:32 -05:00
parent 97035e5596
commit 57e9069f0a
6 changed files with 10 additions and 9 deletions

View file

@ -71,7 +71,7 @@ AwsLevel2DataProvider::GetTimePointFromKey(const std::string& key)
(lastSeparator == std::string::npos) ? 0 : lastSeparator + 5;
// Filename format is GGGGYYYYMMDD_TTTTTT(_V##).gz
static constexpr size_t formatSize = std::string("YYYYMMDD_TTTTTT").size();
static const size_t formatSize = std::string("YYYYMMDD_TTTTTT").size();
if (key.size() >= offset + formatSize)
{

View file

@ -96,8 +96,7 @@ AwsLevel3DataProvider::GetTimePointFromKey(const std::string& key)
constexpr size_t offset = 8;
// Filename format is GGG_PPP_YYYY_MM_DD_HH_MM_SS
static constexpr size_t formatSize =
std::string("YYYY_MM_DD_HH_MM_SS").size();
static const size_t formatSize = std::string("YYYY_MM_DD_HH_MM_SS").size();
if (key.size() >= offset + formatSize)
{

View file

@ -4,6 +4,7 @@
#include <scwx/util/logger.hpp>
#include <fstream>
#include <sstream>
#if defined(_MSC_VER)
# pragma warning(push)

View file

@ -3,6 +3,7 @@
#include <scwx/util/rangebuf.hpp>
#include <istream>
#include <sstream>
#include <string>
#if defined(__GNUC__)