1// (C) Copyright John Maddock 2001. 2// Use, modification and distribution are subject to the 3// Boost Software License, Version 1.0. (See accompanying file 4// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 6// See http://www.boost.org/libs/config for most recent version. 7 8// MACRO: BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS 9// TITLE: template iterator-constructors 10// DESCRIPTION: The standard library does not provide 11// templated iterator constructors for its containers. 12 13#include <vector> 14#include <deque> 15#include <list> 16 17namespace boost_no_templated_iterator_constructors{ 18 19int test() 20{ 21 std::vector<int> v1; 22 std::deque<int> d1; 23 std::list<char> l1; 24 25 // 26 // now try constructors: 27 std::vector<long> v2(d1.begin(), d1.end()); 28 std::deque<long> d2(v1.begin(), v1.end()); 29 std::list<long> l2(d1.begin(), d1.end()); 30 31 return 0; 32} 33 34} 35 36 37 38 39