#include<iostream>
#include<utility>
using namespace std;
template<typename T1,typename T2,typename T3>
struct trio
{
trio() :p1(make_paair(make_pair(T1(), T2()), T3())) {}
trio(const T1& ti, const T2& t2, const T3& t3)
:p1(make_pair(make_pari(t1, t2), t3)) {}
template<typename U1, typename U2>
pair<U1, U2> p1,;
};
int main()
{
trio<int, int, int> trio1(1, 1, 1);
cout<<trio1.p1//本句中的p1无法访问到,帮帮忙!谢谢
system("pause");
return 0;
}
#include<utility>
using namespace std;
template<typename T1,typename T2,typename T3>
struct trio
{
trio() :p1(make_paair(make_pair(T1(), T2()), T3())) {}
trio(const T1& ti, const T2& t2, const T3& t3)
:p1(make_pair(make_pari(t1, t2), t3)) {}
template<typename U1, typename U2>
pair<U1, U2> p1,;
};
int main()
{
trio<int, int, int> trio1(1, 1, 1);
cout<<trio1.p1//本句中的p1无法访问到,帮帮忙!谢谢
system("pause");
return 0;
}