Skip to content

Commit 4b1a2ce

Browse files
committed
fix deprecation warning: preceding whitespace to operator
1 parent 94db2b3 commit 4b1a2ce

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

api/util/units.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ inline namespace literals
3131
*/
3232
using int_t = unsigned long long;
3333

34-
constexpr auto operator"" _b ( int_t x)
34+
constexpr auto operator""_b ( int_t x)
3535
{ return 1ULL * x; }
3636

37-
constexpr auto operator"" _KiB ( int_t x)
37+
constexpr auto operator""_KiB ( int_t x)
3838
{ return 1024_b * x; }
3939

40-
constexpr auto operator"" _MiB ( int_t x )
40+
constexpr auto operator""_MiB ( int_t x )
4141
{ return 1024_KiB * x; }
4242

43-
constexpr auto operator"" _GiB ( int_t x )
43+
constexpr auto operator""_GiB ( int_t x )
4444
{ return 1024_MiB * x; }
4545

46-
constexpr auto operator"" _TiB ( int_t x )
46+
constexpr auto operator""_TiB ( int_t x )
4747
{ return 1024_GiB * x; }
4848

4949

@@ -56,19 +56,19 @@ inline namespace literals
5656
using MHz = std::chrono::duration<double, std::mega>;
5757
using GHz = std::chrono::duration<double, std::giga>;
5858

59-
constexpr Hz operator"" _hz(long double d) {
59+
constexpr Hz operator""_hz(long double d) {
6060
return Hz(d);
6161
}
6262

63-
constexpr KHz operator"" _khz(long double d) {
63+
constexpr KHz operator""_khz(long double d) {
6464
return KHz(d);
6565
}
6666

67-
constexpr MHz operator"" _mhz(long double d) {
67+
constexpr MHz operator""_mhz(long double d) {
6868
return MHz(d);
6969
}
7070

71-
constexpr GHz operator"" _ghz(long double d) {
71+
constexpr GHz operator""_ghz(long double d) {
7272
return GHz(d);
7373
}
7474

0 commit comments

Comments
 (0)