Skip to content

Commit a86c5f9

Browse files
authored
Fix formatting of make_unique.hpp (#1045)
1 parent 075af33 commit a86c5f9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/stdx/make_unique.hpp

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,12 @@ std::unique_ptr<T> make_unique(Args&&... args) {
112112
/**
113113
* @copydoc bsoncxx::v_noabi::stdx::make_unique
114114
*/
115-
template <typename T,
116-
typename Impl = detail::make_unique_impl<T>,
117-
typename std::enable_if<std::is_array<T>::value,
118-
decltype(Impl::make(std::true_type{}, std::declval<std::size_t>()),
119-
void())>::type* = nullptr>
115+
template <
116+
typename T,
117+
typename Impl = detail::make_unique_impl<T>,
118+
typename std::enable_if<std::is_array<T>::value,
119+
decltype(Impl::make(std::true_type{}, std::declval<std::size_t>()),
120+
void())>::type* = nullptr>
120121
std::unique_ptr<T> make_unique(std::size_t count) {
121122
return Impl::make(std::true_type{}, count);
122123
}
@@ -149,11 +150,12 @@ std::unique_ptr<T> make_unique_for_overwrite(Args&&... args) {
149150
/**
150151
* @copydoc bsoncxx::v_noabi::stdx::make_unique_for_overwrite
151152
*/
152-
template <typename T,
153-
typename Impl = detail::make_unique_impl<T>,
154-
typename std::enable_if<std::is_array<T>::value,
155-
decltype(Impl::make(std::false_type{}, std::declval<std::size_t>()),
156-
void())>::type* = nullptr>
153+
template <
154+
typename T,
155+
typename Impl = detail::make_unique_impl<T>,
156+
typename std::enable_if<std::is_array<T>::value,
157+
decltype(Impl::make(std::false_type{}, std::declval<std::size_t>()),
158+
void())>::type* = nullptr>
157159
std::unique_ptr<T> make_unique_for_overwrite(std::size_t count) {
158160
return Impl::make(std::false_type{}, count);
159161
}

0 commit comments

Comments
 (0)