[vlc-commits] [Git][videolan/vlc][master] adaptive: MovingAverage: fix template-id warning

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu May 23 11:19:00 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
f55efcc5 by Alexandre Janniaux at 2024-05-23T10:48:55+00:00
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 ‘< >’

- - - - -


1 changed file:

- modules/demux/adaptive/tools/MovingAverage.hpp


Changes:

=====================================
modules/demux/adaptive/tools/MovingAverage.hpp
=====================================
@@ -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;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f55efcc5939725f4610cd07ecb8af65ff528bc7d

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f55efcc5939725f4610cd07ecb8af65ff528bc7d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list