@@ -841,23 +841,27 @@ class tuple_caster {
841
841
protected:
842
842
template <size_t ... Is>
843
843
type implicit_cast (index_sequence<Is...>) & {
844
- return type (cast_op<Ts>(std::get<Is>(subcasters))...);
844
+ using std::get;
845
+ return type (cast_op<Ts>(get<Is>(subcasters))...);
845
846
}
846
847
template <size_t ... Is>
847
848
type implicit_cast (index_sequence<Is...>) && {
848
- return type (cast_op<Ts>(std::move (std::get<Is>(subcasters)))...);
849
+ using std::get;
850
+ return type (cast_op<Ts>(std::move (get<Is>(subcasters)))...);
849
851
}
850
852
851
853
static constexpr bool load_impl (const sequence &, bool , index_sequence<>) { return true ; }
852
854
853
855
template <size_t ... Is>
854
856
bool load_impl (const sequence &seq, bool convert, index_sequence<Is...>) {
857
+ using std::get;
858
+
855
859
#ifdef __cpp_fold_expressions
856
- if ((... || !std:: get<Is>(subcasters).load (seq[Is], convert))) {
860
+ if ((... || !get<Is>(subcasters).load (seq[Is], convert))) {
857
861
return false ;
858
862
}
859
863
#else
860
- for (bool r : {std:: get<Is>(subcasters).load (seq[Is], convert)...}) {
864
+ for (bool r : {get<Is>(subcasters).load (seq[Is], convert)...}) {
861
865
if (!r) {
862
866
return false ;
863
867
}
@@ -872,10 +876,11 @@ class tuple_caster {
872
876
const return_value_policy_pack &rvpp,
873
877
handle parent,
874
878
index_sequence<Is...>) {
879
+ using std::get;
875
880
PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100 (src, rvpp, parent);
876
881
PYBIND11_WORKAROUND_INCORRECT_GCC_UNUSED_BUT_SET_PARAMETER (rvpp, parent);
877
882
std::array<object, size> entries{{reinterpret_steal<object>(
878
- make_caster<Ts>::cast (std:: get<Is>(std::forward<T>(src)), rvpp.get (Is), parent))...}};
883
+ make_caster<Ts>::cast (get<Is>(std::forward<T>(src)), rvpp.get (Is), parent))...}};
879
884
for (const auto &entry : entries) {
880
885
if (!entry) {
881
886
return handle ();
0 commit comments