Skip to content

Commit

Permalink
Fix build with clang >= 19.0
Browse files Browse the repository at this point in the history
Clang >= 19.0 requires a template argument list after the template
keyword for CWG96 compliance, see
llvm/llvm-project#80801
  • Loading branch information
berolinux authored and bisqwit committed Aug 9, 2024
1 parent a0a6f57 commit 68ced8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gunzip.hh
Original file line number Diff line number Diff line change
Expand Up @@ -1137,21 +1137,21 @@ namespace gunzip_ns
//fprintf(stderr, "both track flag\n");
SizeTracker<DeflateTrackBothSize> tracker;
return tracker(Gunzip<code & Flag_NoTrackFlagMask>
(tracker.template ForwardInput(i), tracker.template ForwardOutput(o), tracker.template ForwardWindow(c), std::forward<B>(b)));
(tracker.template ForwardInput<I>(i), tracker.template ForwardOutput<O>(o), tracker.template ForwardWindow<C>(c), std::forward<B>(b)));
}
else if constexpr(code & Flag_TrackIn)
{
//fprintf(stderr, "in track flag\n");
SizeTracker<DeflateTrackInSize> tracker;
return tracker(Gunzip<code & Flag_NoTrackFlagMask>
(tracker.template ForwardInput(i),std::forward<O>(o),std::forward<C>(c),std::forward<B>(b)));
(tracker.template ForwardInput<I>(i),std::forward<O>(o),std::forward<C>(c),std::forward<B>(b)));
}
else if constexpr(code & Flag_TrackOut)
{
//fprintf(stderr, "out track flag\n");
SizeTracker<DeflateTrackOutSize> tracker;
return tracker(Gunzip<code & Flag_NoTrackFlagMask>
(std::forward<I>(i), tracker.template ForwardOutput(o), tracker.template ForwardWindow(c), std::forward<B>(b)));
(std::forward<I>(i), tracker.template ForwardOutput<O>(o), tracker.template ForwardWindow<C>(c), std::forward<B>(b)));
}
else
{
Expand Down

0 comments on commit 68ced8b

Please sign in to comment.