- 102 名前:デフォルトの名無しさん mailto:sage [2016/11/30(水) 12:51:41.03 ID:zOzS6ENl.net]
- ???部にどの様な記述でコンパイルできるのですか?
#include <iostream> #include <vector> template<class T> class Point{ public: Point(T x,T y):m_x(x),m_y(y){} private: T m_x; T m_y; }; int main( int argc, char *argv[] ) { Point<int> p1(0,0); Point<double> p2(0.0,0.0); std::vector<Point<???>> vpoints; vpoints.push_back(p1); vpoints.push_back(p2); return 0; }
|

|