mirror of https://github.com/djcb/mu.git
parser: fix some post-c++14 code
don't require anything post c++14
This commit is contained in:
parent
d28a81f506
commit
fe18603843
|
@ -47,7 +47,7 @@ struct Node {
|
|||
Type type;
|
||||
std::unique_ptr<Data> data;
|
||||
|
||||
static constexpr const char* type_name (Type t) {
|
||||
static const char* type_name (Type t) {
|
||||
switch (t) {
|
||||
case Type::Empty: return ""; break;
|
||||
case Type::OpAnd: return "and"; break;
|
||||
|
|
|
@ -161,8 +161,8 @@ Mux::quote (const std::string& str)
|
|||
constexpr const auto InternalDateFormat = "%010" G_GINT64_FORMAT;
|
||||
constexpr const char InternalDateMin[] = "0000000000";
|
||||
constexpr const char InternalDateMax[] = "9999999999";
|
||||
static_assert(sizeof(InternalDateMin) == 10 + 1);
|
||||
static_assert(sizeof(InternalDateMax) == 10 + 1);
|
||||
static_assert(sizeof(InternalDateMin) == 10 + 1, "invalid");
|
||||
static_assert(sizeof(InternalDateMax) == 10 + 1, "invalid");
|
||||
|
||||
static std::string
|
||||
date_boundary (bool is_first)
|
||||
|
@ -304,8 +304,8 @@ constexpr const auto SizeFormat = "%010" G_GINT64_FORMAT;
|
|||
|
||||
constexpr const char SizeMin[] = "0000000000";
|
||||
constexpr const char SizeMax[] = "9999999999";
|
||||
static_assert(sizeof(SizeMin) == 10 + 1);
|
||||
static_assert(sizeof(SizeMax) == 10 + 1);
|
||||
static_assert(sizeof(SizeMin) == 10 + 1, "invalid");
|
||||
static_assert(sizeof(SizeMax) == 10 + 1, "invalid");
|
||||
|
||||
static std::string
|
||||
size_boundary (bool is_first)
|
||||
|
|
Loading…
Reference in New Issue