*: remove lots of GCC 4.8 fallback code
We can remove those C++11 and C++14 kludges because we require GCC 4.9 now.
This commit is contained in:
@@ -90,10 +90,7 @@ calc_hash(TagType type, const char *p)
|
||||
return hash ^ type;
|
||||
}
|
||||
|
||||
#if CLANG_OR_GCC_VERSION(4,7)
|
||||
constexpr
|
||||
#endif
|
||||
static inline TagPoolSlot *
|
||||
static inline constexpr TagPoolSlot *
|
||||
tag_item_to_slot(TagItem *item)
|
||||
{
|
||||
return &ContainerCast(*item, &TagPoolSlot::item);
|
||||
|
@@ -76,11 +76,7 @@ TagSet::InsertUnique(const Tag &src, TagType type, const char *value,
|
||||
else
|
||||
builder.AddItem(type, value);
|
||||
CopyTagMask(builder, src, group_mask);
|
||||
#if CLANG_OR_GCC_VERSION(4,8)
|
||||
emplace(builder.Commit());
|
||||
#else
|
||||
insert(builder.Commit());
|
||||
#endif
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user