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