From a12fcfea0dbb270b149f87ee3cdc2e15e0f01a23 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 15 May 2023 17:53:58 +0200 Subject: [PATCH] libc: replace enum by static constexpr (C++20) Related to issue #4869 --- repos/libports/src/lib/libc/internal/clone_session.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repos/libports/src/lib/libc/internal/clone_session.h b/repos/libports/src/lib/libc/internal/clone_session.h index 074d0c307f..8eff451a51 100644 --- a/repos/libports/src/lib/libc/internal/clone_session.h +++ b/repos/libports/src/lib/libc/internal/clone_session.h @@ -33,9 +33,9 @@ struct Libc::Clone_session : Session { static const char *service_name() { return "Clone"; } - enum { BUFFER_SIZE = 512*1024UL, - RAM_QUOTA = BUFFER_SIZE + 4096, - CAP_QUOTA = 2 }; + static constexpr size_t BUFFER_SIZE = 512*1024; + static constexpr size_t RAM_QUOTA = BUFFER_SIZE + 4096; + static constexpr unsigned CAP_QUOTA = 2; struct Memory_range {