Skip to content

Commit 3302af7

Browse files
authored
Fix IO of field capture of empty type (#165)
1 parent f5561e3 commit 3302af7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

include/kumi/detail/field_capture.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ namespace kumi
6969
static constexpr auto name = ID;
7070

7171
static constexpr bool is_field_capture = true;
72+
73+
template<typename CharT, typename Traits>
74+
friend std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& os,
75+
field_capture const& w) noexcept
76+
{
77+
return os << ID << " : " << _::make_streamable(w.get());
78+
}
7279
};
7380

7481
namespace _

0 commit comments

Comments
 (0)