Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice committed Jan 22, 2024
1 parent 86b0f2d commit c8eb14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/command_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ struct CommandParser {

CommandParser(Iter begin, Iter end) : begin_(std::move(begin)), end_(std::move(end)) {}

template <typename Container, std::enable_if<std::is_lvalue_reference_v<Container>, int> = 0>
template <typename Container, std::enable_if_t<std::is_lvalue_reference_v<Container>, int> = 0>
explicit CommandParser(Container&& con, size_t skip_num = 0) : CommandParser(std::begin(con), std::end(con)) {
std::advance(begin_, skip_num);
}

template <typename Container, std::enable_if<!std::is_lvalue_reference_v<Container>, int> = 0>
template <typename Container, std::enable_if_t<!std::is_lvalue_reference_v<Container>, int> = 0>
explicit CommandParser(Container&& con, size_t skip_num = 0)
: CommandParser(MoveIterator(std::begin(con)), MoveIterator(std::end(con))) {
std::advance(begin_, skip_num);
Expand Down

0 comments on commit c8eb14d

Please sign in to comment.