1 2 3 4
|
graph.cpp: In instantiation of ‘std::ostream& operator<<(std::ostream&, const Graph<T>&) [with T = short unsigned int; std::ostream = std::basic_ostream<char>]’:
graph.cpp:21:3: error: binding ‘const adjacency_list {aka const std::map<short unsigned int, std::map<short unsigned int, short unsigned int, std::less<short unsigned int>, std::allocator<std::pair<const short unsigned int, short unsigned int> > >, std::less<short unsigned int>, std::allocator<std::pair<const short unsigned int, std::map<short unsigned int, short unsigned int, std::less<short unsigned int>, std::allocator<std::pair<const short unsigned int, short unsigned int> > > > > >}’ to reference of type ‘Graph<short unsigned int>::adjacency_list& {aka std::map<short unsigned int, std::map<short unsigned int, short unsigned int, std::less<short unsigned int>, std::allocator<std::pair<const short unsigned int, short unsigned int> > >, std::less<short unsigned int>, std::allocator<std::pair<const short unsigned int, std::map<short unsigned int, short unsigned int, std::less<short unsigned int>, std::allocator<std::pair<const short unsigned int, short unsigned int> > > > > >&}’ discards qualifiers
Compilation failed.
|