1 // Copyright (C) Vladimir Prus 2003.
2 // Distributed under the Boost Software License, Version 1.0. (See
3 // accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5
6 #include <boost/graph/adjacency_list.hpp>
7 #include <boost/graph/copy.hpp>
8
9 using namespace boost;
10
11 class copier {
12 public:
13 template<class V1, class V2>
operator ()(const V1 &,const V2 &) const14 void operator()(const V1&, const V2&) const {}
15 };
16
main()17 int main()
18 {
19 adjacency_list<vecS, vecS, directedS, property<vertex_root_t, int> > g1, g2;
20 adjacency_list<vecS, setS, directedS, property<vertex_index_t, int> > g3;
21
22 copy_graph(g1, g2);
23 copier c;
24 copy_graph(g3, g1, vertex_copy(c));
25 }
26