From 628c0b536390a10c1920a5c6a46dfc29e7b26bb4 Mon Sep 17 00:00:00 2001 From: shrek1402 <44646716+shrek1402@users.noreply.github.com> Date: Wed, 5 May 2021 14:49:15 +0700 Subject: [PATCH 1/3] Update adjacency_list.hpp If the project has a function with the same name, a name conflict occurs error C2668: add_edge --- include/boost/graph/detail/adjacency_list.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/graph/detail/adjacency_list.hpp b/include/boost/graph/detail/adjacency_list.hpp index c1a2ada23..5ef8145ad 100644 --- a/include/boost/graph/detail/adjacency_list.hpp +++ b/include/boost/graph/detail/adjacency_list.hpp @@ -2190,7 +2190,7 @@ class vec_adj_list_impl : public adj_list_helper< Config, Base > edge_descriptor e; bool inserted; boost::tie(e, inserted) - = add_edge(source(*ei, x), target(*ei, x), *this); + = boost::add_edge(source(*ei, x), target(*ei, x), *this); *((edge_property_type*)e.m_eproperty) = *((edge_property_type*)(*ei).m_eproperty); } From 83096ee7db44be574fe1a9d8aa2b8e87ce6aa5ff Mon Sep 17 00:00:00 2001 From: shrek1402 <44646716+shrek1402@users.noreply.github.com> Date: Tue, 18 May 2021 16:46:25 +0700 Subject: [PATCH 2/3] Update adjacency_list.hpp --- include/boost/graph/detail/adjacency_list.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/graph/detail/adjacency_list.hpp b/include/boost/graph/detail/adjacency_list.hpp index 5ef8145ad..2e3a07a35 100644 --- a/include/boost/graph/detail/adjacency_list.hpp +++ b/include/boost/graph/detail/adjacency_list.hpp @@ -2190,7 +2190,7 @@ class vec_adj_list_impl : public adj_list_helper< Config, Base > edge_descriptor e; bool inserted; boost::tie(e, inserted) - = boost::add_edge(source(*ei, x), target(*ei, x), *this); + = ::boost::add_edge(source(*ei, x), target(*ei, x), *this); *((edge_property_type*)e.m_eproperty) = *((edge_property_type*)(*ei).m_eproperty); } From 6faea08f23d5c4f816bfb434e0014dfaf0956a71 Mon Sep 17 00:00:00 2001 From: shrek1402 <44646716+shrek1402@users.noreply.github.com> Date: Tue, 8 Jun 2021 16:44:50 +0700 Subject: [PATCH 3/3] Update adjacency_list.hpp --- include/boost/graph/detail/adjacency_list.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/graph/detail/adjacency_list.hpp b/include/boost/graph/detail/adjacency_list.hpp index 2e3a07a35..5ef8145ad 100644 --- a/include/boost/graph/detail/adjacency_list.hpp +++ b/include/boost/graph/detail/adjacency_list.hpp @@ -2190,7 +2190,7 @@ class vec_adj_list_impl : public adj_list_helper< Config, Base > edge_descriptor e; bool inserted; boost::tie(e, inserted) - = ::boost::add_edge(source(*ei, x), target(*ei, x), *this); + = boost::add_edge(source(*ei, x), target(*ei, x), *this); *((edge_property_type*)e.m_eproperty) = *((edge_property_type*)(*ei).m_eproperty); }