Skip to content

Commit 6770aea

Browse files
authored
is_pod is deprecated, use is_trivial and is_standard_layout instead (#573)
1 parent 504e6a6 commit 6770aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rx/v2/src/rxcpp/rx-util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ std::vector<T> to_vector(std::initializer_list<T> il) {
6767
}
6868

6969
template<class T0, class... TN>
70-
typename std::enable_if<!std::is_array<T0>::value && std::is_pod<T0>::value, std::vector<T0>>::type to_vector(T0 t0, TN... tn) {
70+
typename std::enable_if<!std::is_array<T0>::value && std::is_trivial<T0>::value && std::is_standard_layout<T0>::value, std::vector<T0>>::type to_vector(T0 t0, TN... tn) {
7171
return to_vector({t0, tn...});
7272
}
7373

0 commit comments

Comments
 (0)