Skip to content

Commit d3339a7

Browse files
committed
util: fix compiler warning about deprecated space before _MiB
``` src/util/byte_units.h:13:29: error: identifier '_MiB' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator] 13 | constexpr size_t operator"" _MiB(unsigned long long mebibytes) | ~~~~~~~~~~~^~~~ | operator""_MiB 1 error generated. ``` Clang 20.0.0
1 parent 89720b7 commit d3339a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/byte_units.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <stdexcept>
1111

1212
//! Overflow-safe conversion of MiB to bytes.
13-
constexpr size_t operator"" _MiB(unsigned long long mebibytes)
13+
constexpr size_t operator""_MiB(unsigned long long mebibytes)
1414
{
1515
auto bytes{CheckedLeftShift(mebibytes, 20)};
1616
if (!bytes || *bytes > std::numeric_limits<size_t>::max()) {

0 commit comments

Comments
 (0)