//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // move_iterator // template // requires HasConstructor // move_iterator(const move_iterator &u); // test requires #include template void test(U u) { std::move_iterator r2(u); std::move_iterator r1 = r2; } struct base {}; struct derived {}; int main() { derived d; test(&d); }