Skip to content

Commit

Permalink
Enable c++20 for build
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Jul 30, 2024
1 parent b9d0433 commit e7efc75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project('pkgfile', 'cpp',
version : '21',
license : 'MIT',
default_options : [
'cpp_std=c++17',
'cpp_std=c++20',
'warning_level=3',
'prefix=/usr',
])
Expand Down
2 changes: 1 addition & 1 deletion src/filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace pkgfile {
namespace filter {

bool Directory::Matches(std::string_view line) const {
return !line.empty() && line.back() == '/';
return line.ends_with('/');
}

bool Bin::Matches(std::string_view line) const {
Expand Down

0 comments on commit e7efc75

Please sign in to comment.