]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/common/errorator: allow assert_all to accept c_str()
authorMatan Breizman <mbreizma@redhat.com>
Mon, 21 Apr 2025 14:13:41 +0000 (14:13 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 22 Apr 2025 15:11:58 +0000 (15:11 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/common/errorator.h

index 66316dd90fe2104c23dd9f23fe7bab624d32a8ed..ce11c2919cb18f8c8b0a7766e7cb215bc587bf4d 100644 (file)
@@ -965,8 +965,7 @@ public:
   class assert_all {
     const char* const msg = nullptr;
   public:
-    template <std::size_t N>
-    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 <std::size_t N>
-    assert_all(const char (&msg)[N])
+    assert_all(const char* msg)
       : msg(msg) {
     }
     assert_all() = default;