Skip to content

Commit 16c8e3d

Browse files
committed
refactor: work around string conversion warning
1 parent 76f6d52 commit 16c8e3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/cpp2util.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ class out {
615615
*t = T(CPP2_FORWARD(args)...);
616616
}
617617
else {
618-
Default.expects(!"attempted to copy assign, but copy assignment is not available");
618+
Default.expects(false, "attempted to copy assign, but copy assignment is not available");
619619
}
620620
}
621621
else {
@@ -625,7 +625,7 @@ class out {
625625
dt->value() = T(CPP2_FORWARD(args)...);
626626
}
627627
else {
628-
Default.expects(!"attempted to copy assign, but copy assignment is not available");
628+
Default.expects(false, "attempted to copy assign, but copy assignment is not available");
629629
}
630630
}
631631
else {
@@ -642,7 +642,7 @@ class out {
642642
*t = T{CPP2_FORWARD(args)...};
643643
}
644644
else {
645-
Default.expects(!"attempted to copy assign, but copy assignment is not available");
645+
Default.expects(false, "attempted to copy assign, but copy assignment is not available");
646646
}
647647
}
648648
else {
@@ -652,7 +652,7 @@ class out {
652652
dt->value() = T{CPP2_FORWARD(args)...};
653653
}
654654
else {
655-
Default.expects(!"attempted to copy assign, but copy assignment is not available");
655+
Default.expects(false, "attempted to copy assign, but copy assignment is not available");
656656
}
657657
}
658658
else {

0 commit comments

Comments
 (0)