//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // stack(const stack&) = default; #include #include template C make(int n) { C c; for (int i = 0; i < n; ++i) c.push_back(i); return c; } int main() { std::stack q(make >(5)); std::stack q2 = q; assert(q2 == q); }