Make bt2_common::UuidView::size() `constexpr`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 2 May 2022 13:59:42 +0000 (09:59 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 11 Sep 2023 15:24:02 +0000 (11:24 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Iffaae7d39ffa9fffb5c40988f82f5a5d78174115
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7969
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10818
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/uuid-view.hpp

index 7127c0f8ca32d7e9e778572a23d589c19f757032..6fae4430da305de1329aad8cfe4cd2a2ca908ad3 100644 (file)
@@ -47,7 +47,7 @@ public:
         return s;
     }
 
-    static std::size_t size() noexcept
+    static constexpr std::size_t size() noexcept
     {
         return BT_UUID_LEN;
     }
This page took 0.032426 seconds and 4 git commands to generate.