diff --git a/include/boost/graph/detail/array_binary_tree.hpp b/include/boost/graph/detail/array_binary_tree.hpp index 30e022ef..6f337e91 100644 --- a/include/boost/graph/detail/array_binary_tree.hpp +++ b/include/boost/graph/detail/array_binary_tree.hpp @@ -135,11 +135,13 @@ public: */ template inline void swap(ArrayBinaryTreeNode x, ExternalData& edata ) { + using boost::get; + value_type tmp = x.value(); /*swap external data*/ - edata[ boost::get(id, tmp) ] = i; - edata[ boost::get(id, value()) ] = x.i; + edata[ get(id, tmp) ] = i; + edata[ get(id, value()) ] = x.i; x.value() = value(); value() = tmp;