Commit 21a5c7c
committed
io_tester: disambiguate sstring streaming to YAML::Emitter
Newer yaml-cpp (>= 0.8.0) adds an
operator<<(Emitter&, const std::string_view&)
overload alongside the existing const std::string& one. Since
seastar::sstring is implicitly convertible to both std::string and
std::string_view, streaming an sstring directly into a YAML::Emitter
became ambiguous and broke the build (seen on the Alpine CI image):
error: ambiguous overload for 'operator<<'
(operand types are 'YAML::Emitter' and 'seastar::sstring')
Explicitly convert to std::string at the two affected call sites. The
std::string overload has always existed, so this remains correct on
older yaml-cpp versions as well.1 parent 0afc1d9 commit 21a5c7c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
| 651 | + | |
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| |||
1206 | 1206 | | |
1207 | 1207 | | |
1208 | 1208 | | |
1209 | | - | |
| 1209 | + | |
1210 | 1210 | | |
1211 | 1211 | | |
1212 | 1212 | | |
| |||
0 commit comments