Fix errors C2238, C2248 and C2059 on MSVC bots.

This CL fixes the following errors on MSVC bots:

../../rtc_base/units/unit_base_unittest.cc(42): error C2059:
  syntax error: '<'

../../rtc_base/units/unit_base_unittest.cc(42): error C2238:
  unexpected token(s) preceding ';'

../..\rtc_base/units/unit_base.h(39): error C2248:
  'webrtc::`anonymous-namespace'::TestUnit::TestUnit':
  cannot access protected member declared in class
  'webrtc::`anonymous-namespace'::TestUnit'

No-Try: True
Bug: None
Change-Id: Ic63a75132107381474aca2e1d42ba96d1f6a1c00
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/172621
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30972}
This commit is contained in:
Mirko Bonadei 2020-04-02 09:50:33 +02:00 committed by Commit Bot
parent d335426a39
commit cfa0e8ffe2

View file

@ -39,7 +39,7 @@ class TestUnit final : public rtc_units_impl::RelativeUnit<TestUnit> {
}
private:
friend class UnitBase<TestUnit>;
friend class rtc_units_impl::UnitBase<TestUnit>;
static constexpr bool one_sided = false;
using RelativeUnit<TestUnit>::RelativeUnit;
};