Skip to content

Commit 7906db1

Browse files
committed
Fixing ODR violation with parse_specific and parse_url function.
1 parent fa0a950 commit 7906db1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

boost/network/uri/detail/parse_uri.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ namespace boost { namespace network { namespace uri {
1414
namespace detail {
1515

1616
template <class Range, class Tag>
17-
bool parse_specific(Range & range, uri_parts<Tag> & parts) {
17+
inline bool parse_specific(Range & range, uri_parts<Tag> & parts) {
1818
return true;
1919
}
2020

2121
template <class Range, class Tag>
22-
bool parse_uri(Range & range, uri_parts<Tag> & parts) {
22+
inline bool parse_uri(Range & range, uri_parts<Tag> & parts) {
2323
using spirit::qi::parse;
2424
using spirit::qi::lexeme;
2525
using spirit::ascii::char_;

boost/network/uri/http/detail/parse_specific.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace boost { namespace network { namespace uri {
4343
};
4444

4545
template <>
46-
bool parse_specific<
46+
inline bool parse_specific<
4747
string<tags::http>::type,
4848
tags::http
4949
>(

0 commit comments

Comments
 (0)