]>
Commit | Line | Data |
---|---|---|
9f95a23c | 1 | #include <seastar/util/std-compat.hh> |
11fdf7f2 | 2 | #include <seastar/core/sstring.hh> |
9f95a23c | 3 | #include <boost/lexical_cast.hpp> |
11fdf7f2 TL |
4 | |
5 | namespace seastar { | |
6 | ||
9f95a23c TL |
7 | sstring read_first_line(compat::filesystem::path sys_file); |
8 | ||
9 | template <typename Type> | |
10 | Type read_first_line_as(compat::filesystem::path sys_file) { | |
11 | return boost::lexical_cast<Type>(read_first_line(sys_file)); | |
12 | } | |
11fdf7f2 TL |
13 | |
14 | } |