Skip to content

Commit 7fd241c

Browse files
Add deduction guides required for older Clang
1 parent 9d36edb commit 7fd241c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

include/bson/parse.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ struct integer {
559559
}
560560
};
561561

562+
template <typename R>
563+
explicit integer(R const&) -> integer<R>;
564+
562565
/**
563566
* @brief A parser combinator that attempts to parse each element in a document/array
564567
*

src/amongoc/nano/util.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ struct opt_fmap {
476476
}
477477
};
478478

479+
template <typename F>
480+
explicit opt_fmap(F const&) -> opt_fmap<F>;
481+
479482
/**
480483
* @brief Decay-copy an object.
481484
*

src/amongoc/wire/message.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ struct body_section {
5959
std::uint8_t const& kind() const noexcept { return kind_byte; }
6060
};
6161

62+
template <typename B>
63+
explicit body_section(const B&) -> body_section<B>;
64+
6265
// Common body section type:
6366
extern template struct body_section<bson_view>;
6467
using bson_view_body_section = body_section<bson_view>;

0 commit comments

Comments
 (0)