Change c{begin,end} to begin,end

Unfortunately old distributions are old.

Fixes build failures on GCC 4.8 (RHEL6/7).
This commit is contained in:
Fabian Homborg 2020-01-05 15:44:05 +01:00
parent 23bf9661b2
commit 0f362b4bb2

View File

@ -1680,8 +1680,9 @@ wcstring complete_print() {
// Get a list of all completions in a vector, then sort it by order. // Get a list of all completions in a vector, then sort it by order.
std::vector<std::reference_wrapper<const completion_entry_t>> all_completions; std::vector<std::reference_wrapper<const completion_entry_t>> all_completions;
all_completions.insert(all_completions.cbegin(), completion_set->cbegin(), // These should be "c"begin/end, but then gcc from ~~the dark ages~~ RHEL 7 would complain.
completion_set->cend()); all_completions.insert(all_completions.begin(), completion_set->begin(),
completion_set->end());
sort(all_completions.begin(), all_completions.end(), compare_completions_by_order); sort(all_completions.begin(), all_completions.end(), compare_completions_by_order);
for (const completion_entry_t &e : all_completions) { for (const completion_entry_t &e : all_completions) {