We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3473dd2 commit 4f20d1dCopy full SHA for 4f20d1d
1 file changed
stan/math/prim/functor/partially_forward_as_tuple.hpp
@@ -31,12 +31,14 @@ struct deduce_cvr {
31
};
32
33
namespace internal {
34
+template <typename T>
35
+static constexpr bool nothrow_constructible_v
36
+ = std::is_nothrow_constructible_v<std::decay_t<T>, T&&>;
37
template <typename... Types>
38
static constexpr bool is_partial_forward_nothrow_constructible
39
= ((std::is_lvalue_reference_v<
- Types&&> || (std::is_nothrow_constructible_v<std::decay_t<Types>, Types&&>))
- && ...);
-}
40
+ Types&&> || nothrow_constructible_v<Types&&>)&&...);
41
+} // namespace internal
42
43
template <typename T>
44
using deduce_cvr_t = typename deduce_cvr<T>::type;
0 commit comments