From: Matan Breizman Date: Mon, 21 Apr 2025 14:13:41 +0000 (+0000) Subject: crimson/common/errorator: allow assert_all to accept c_str() X-Git-Tag: testing/wip-rishabh-testing-20250426.123842-debug~34^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=27b232ecc0583d32ad40a6805a97bce24da80d48;p=ceph-ci.git crimson/common/errorator: allow assert_all to accept c_str() Signed-off-by: Matan Breizman --- diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 66316dd90fe..ce11c2919cb 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -965,8 +965,7 @@ public: class assert_all { const char* const msg = nullptr; public: - template - assert_all(const char (&msg)[N]) + assert_all(const char* msg) : msg(msg) { } assert_all() = default; @@ -1332,8 +1331,7 @@ namespace ct_error { class assert_all { const char* const msg = nullptr; public: - template - assert_all(const char (&msg)[N]) + assert_all(const char* msg) : msg(msg) { } assert_all() = default;