Skip to content

Commit 4f20d1d

Browse files
committed
update with cpplint fixes
1 parent 3473dd2 commit 4f20d1d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

stan/math/prim/functor/partially_forward_as_tuple.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ struct deduce_cvr {
3131
};
3232

3333
namespace internal {
34+
template <typename T>
35+
static constexpr bool nothrow_constructible_v
36+
= std::is_nothrow_constructible_v<std::decay_t<T>, T&&>;
3437
template <typename... Types>
3538
static constexpr bool is_partial_forward_nothrow_constructible
3639
= ((std::is_lvalue_reference_v<
37-
Types&&> || (std::is_nothrow_constructible_v<std::decay_t<Types>, Types&&>))
38-
&& ...);
39-
}
40+
Types&&> || nothrow_constructible_v<Types&&>)&&...);
41+
} // namespace internal
4042

4143
template <typename T>
4244
using deduce_cvr_t = typename deduce_cvr<T>::type;

0 commit comments

Comments
 (0)