Skip to content

Commit 8dcc1ad

Browse files
committed
fix: add missing 'inline' in public headers
1 parent 21c9405 commit 8dcc1ad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/httpverbs/c_file.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ namespace httpverbs
3434
namespace keywords
3535
{
3636

37+
inline
3738
auto from_c_file(FILE* stream)
3839
-> decltype(std::bind(
3940
fread,
@@ -46,6 +47,7 @@ auto from_c_file(FILE* stream)
4647
std::placeholders::_2, stream);
4748
}
4849

50+
inline
4951
auto to_c_file(FILE* stream)
5052
-> decltype(std::bind(
5153
fwrite,

include/httpverbs/stream.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ struct _request_sputn_cb
6363
namespace keywords
6464
{
6565

66+
inline
6667
auto from_stream(std::istream& is)
6768
-> _request_sgetn_cb
6869
{
6970
return _request_sgetn_cb(is.rdbuf());
7071
}
7172

73+
inline
7274
auto to_stream(std::ostream& os)
7375
-> _request_sputn_cb
7476
{

0 commit comments

Comments
 (0)