Skip to content

Commit 27b232e

Browse files
committed
crimson/common/errorator: allow assert_all to accept c_str()
Signed-off-by: Matan Breizman <[email protected]>
1 parent f5d5f88 commit 27b232e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/crimson/common/errorator.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,7 @@ struct errorator {
965965
class assert_all {
966966
const char* const msg = nullptr;
967967
public:
968-
template <std::size_t N>
969-
assert_all(const char (&msg)[N])
968+
assert_all(const char* msg)
970969
: msg(msg) {
971970
}
972971
assert_all() = default;
@@ -1332,8 +1331,7 @@ namespace ct_error {
13321331
class assert_all {
13331332
const char* const msg = nullptr;
13341333
public:
1335-
template <std::size_t N>
1336-
assert_all(const char (&msg)[N])
1334+
assert_all(const char* msg)
13371335
: msg(msg) {
13381336
}
13391337
assert_all() = default;

0 commit comments

Comments
 (0)