It gave me some tips on how to compute a buffer with buffer_inserter but I can't figure out how to define 2 templates : JoinStrategy and EndStrategy.