Generalize the EOFStream wrapping EOFStream code

7 jobs for eofstream_again in 5 minutes and 18 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #6480641
build

00:05:18

passed #6480646
build_android

00:00:58

passed #6480642
build_clang_libcpp

00:05:07

passed #6480645
build_clazy

00:04:10

passed #6480644
build_mingw64_fedora

00:03:01

passed #6480643
build_ubuntu_16_04

00:02:42

passed #6480640
clang_format

00:01:44