Skip to content
Snippets Groups Projects
Commit f55efcc5 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Steve Lhomme
Browse files

adaptive: MovingAverage: fix template-id warning

    In file included from ../../modules/demux/adaptive/logic/RateBasedAdaptationLogic.h:29,
                     from ../../modules/demux/adaptive/logic/RateBasedAdaptationLogic.cpp:28:
    ../../modules/demux/adaptive/logic/../tools/MovingAverage.hpp:32:33: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
       32 |             MovingAverageSum<T>(T i): sum(0), prev(i) { }
          |                                 ^
    ../../modules/demux/adaptive/logic/../tools/MovingAverage.hpp:32:33: note: remove the ‘< >’
parent c921bd77
No related branches found
No related tags found
1 merge request!5436adaptive: MovingAverage: fix template-id warning
Pipeline #472967 passed with warnings with stage
in 27 minutes and 10 seconds
......@@ -29,7 +29,7 @@ namespace adaptive
class MovingAverageSum
{
public:
MovingAverageSum<T>(T i): sum(0), prev(i) { }
MovingAverageSum(T i): sum(0), prev(i) { }
void operator()(T n) {
sum += (n > prev) ? n - prev : prev - n;
prev = n;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment