mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-13 13:34:48 +00:00
ir: Fix compilation error with GCC 4.8.5
* src/abg-ir.cc (enum_type_decl::get_sorted_enumerators): Add const to parameters of the lambda function. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
6ec8e34c32
commit
306056da14
@ -18960,8 +18960,8 @@ enum_type_decl::get_sorted_enumerators() const
|
||||
|
||||
std::sort(priv_->sorted_enumerators_.begin(),
|
||||
priv_->sorted_enumerators_.end(),
|
||||
[](enum_type_decl::enumerator& l,
|
||||
enum_type_decl::enumerator& r)
|
||||
[](const enum_type_decl::enumerator& l,
|
||||
const enum_type_decl::enumerator& r)
|
||||
{
|
||||
if (l.get_name() == r.get_name())
|
||||
return l.get_value() < r.get_value();
|
||||
|
Loading…
Reference in New Issue
Block a user