From: Max Kellermann Date: Tue, 29 Oct 2024 09:49:19 +0000 (+0100) Subject: include/random: use std::optional instead of boost::optional X-Git-Tag: testing/wip-vshankar-testing-20250115.164543-debug~32^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2caa47b8fa7e42fdddc6a8a93b65d91f3645c4ca;p=ceph-ci.git include/random: use std::optional instead of boost::optional `boost::optional` is obsolete since C++17. Signed-off-by: Max Kellermann --- diff --git a/src/include/random.h b/src/include/random.h index f2e3e37bcd7..6b7c9405efd 100644 --- a/src/include/random.h +++ b/src/include/random.h @@ -16,9 +16,9 @@ #define CEPH_RANDOM_H 1 #include +#include #include #include -#include // Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85494 #ifdef __MINGW32__ @@ -123,7 +123,7 @@ void randomize_rng() template EngineT& engine() { - thread_local boost::optional rng_engine; + thread_local std::optional rng_engine; if (!rng_engine) { rng_engine.emplace(EngineT());