Skip to content

Commit db6ba8d

Browse files
JohelEGPzaucy
authored andcommitted
refactor: work around string conversion warning (hsutter#549)
1 parent 671eb69 commit db6ba8d

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
@@ -616,7 +616,7 @@ class out {
616616
*t = T(CPP2_FORWARD(args)...);
617617
}
618618
else {
619-
Default.expects(!"attempted to copy assign, but copy assignment is not available");
619+
Default.expects(false, "attempted to copy assign, but copy assignment is not available");
620620
}
621621
}
622622
else {
@@ -626,7 +626,7 @@ class out {
626626
dt->value() = T(CPP2_FORWARD(args)...);
627627
}
628628
else {
629-
Default.expects(!"attempted to copy assign, but copy assignment is not available");
629+
Default.expects(false, "attempted to copy assign, but copy assignment is not available");
630630
}
631631
}
632632
else {
@@ -643,7 +643,7 @@ class out {
643643
*t = T{CPP2_FORWARD(args)...};
644644
}
645645
else {
646-
Default.expects(!"attempted to copy assign, but copy assignment is not available");
646+
Default.expects(false, "attempted to copy assign, but copy assignment is not available");
647647
}
648648
}
649649
else {
@@ -653,7 +653,7 @@ class out {
653653
dt->value() = T{CPP2_FORWARD(args)...};
654654
}
655655
else {
656-
Default.expects(!"attempted to copy assign, but copy assignment is not available");
656+
Default.expects(false, "attempted to copy assign, but copy assignment is not available");
657657
}
658658
}
659659
else {

0 commit comments

Comments
 (0)