mirror of
https://github.com/boostorg/graph.git
synced 2026-01-31 20:22:09 +00:00
@@ -136,7 +136,7 @@ namespace detail {
|
||||
typedef boost::iterator_facade<default_construct_iterator<T>, T, std::random_access_iterator_tag, const T&> base_type;
|
||||
T saved_value;
|
||||
const T& dereference() const {return saved_value;}
|
||||
bool equal(default_construct_iterator i) const {return true;}
|
||||
bool equal(default_construct_iterator /*i*/) const {return true;}
|
||||
void increment() {}
|
||||
void decrement() {}
|
||||
void advance(typename base_type::difference_type) {}
|
||||
|
||||
@@ -253,7 +253,7 @@ class indexed_edge_properties<Derived, void, Descriptor, IndexMap>
|
||||
typedef secret const_edge_map_type;
|
||||
|
||||
secret operator[](secret) { return secret(); }
|
||||
void write_by_index(std::size_t idx, const no_property& prop) {}
|
||||
void write_by_index(std::size_t /*idx*/, const no_property& /*prop*/) {}
|
||||
|
||||
edge_map_type get_edge_bundle(const IndexMap& = IndexMap()) const {
|
||||
return edge_map_type();
|
||||
@@ -270,7 +270,7 @@ class indexed_edge_properties<Derived, void, Descriptor, IndexMap>
|
||||
|
||||
public:
|
||||
void push_back(const edge_push_back_type&) { }
|
||||
void move_range(std::size_t src_begin, std::size_t src_end, std::size_t dest_begin) {}
|
||||
void move_range(std::size_t /*src_begin*/, std::size_t /*src_end*/, std::size_t /*dest_begin*/) {}
|
||||
|
||||
typedef dummy_no_property_iterator iterator;
|
||||
iterator begin() {return dummy_no_property_iterator();}
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace boost {
|
||||
// Shit, can't implement this without knowing the size of the
|
||||
// universe.
|
||||
template <class K, class C, class A>
|
||||
void set_compliment(const std::set<K,C,A>& x,
|
||||
void set_compliment(const std::set<K,C,A>& /*x*/,
|
||||
std::set<K,C,A>& z)
|
||||
{
|
||||
z.clear();
|
||||
|
||||
@@ -432,13 +432,13 @@ BOOST_BGL_DECLARE_NAMED_PARAMS
|
||||
template <typename ArgType, typename Prop, typename Graph, bool Exists>
|
||||
struct override_property_t {
|
||||
typedef ArgType result_type;
|
||||
result_type operator()(const Graph& g, const typename boost::add_reference<ArgType>::type a) const {return a;}
|
||||
result_type operator()(const Graph&, const typename boost::add_reference<ArgType>::type a) const {return a;}
|
||||
};
|
||||
|
||||
template <typename ArgType, typename Prop, typename Graph>
|
||||
struct override_property_t<ArgType, Prop, Graph, false> {
|
||||
typedef typename boost::property_map<Graph, Prop>::type result_type;
|
||||
result_type operator()(const Graph& g, const ArgType& a) const {return get(Prop(), g);}
|
||||
result_type operator()(const Graph& g, const ArgType&) const {return get(Prop(), g);}
|
||||
};
|
||||
|
||||
template <typename ArgPack, typename Tag, typename Prop, typename Graph>
|
||||
@@ -455,7 +455,7 @@ BOOST_BGL_DECLARE_NAMED_PARAMS
|
||||
|
||||
template <typename ArgPack, typename Tag, typename Prop, typename Graph>
|
||||
typename override_property_result<ArgPack, Tag, Prop, Graph>::type
|
||||
override_property(const ArgPack& ap, const boost::parameter::keyword<Tag>& t, const Graph& g, Prop prop) {
|
||||
override_property(const ArgPack& ap, const boost::parameter::keyword<Tag>& t, const Graph& g, Prop) {
|
||||
return override_property_t<
|
||||
typename boost::parameter::value_type<ArgPack, Tag, int>::type,
|
||||
Prop,
|
||||
@@ -633,7 +633,7 @@ BOOST_BGL_DECLARE_NAMED_PARAMS
|
||||
typedef Q priority_queue_type;
|
||||
|
||||
static priority_queue_type
|
||||
make_queue(const Graph& g, const ArgPack& ap, KeyT defaultKey, const Q& q) {
|
||||
make_queue(const Graph&, const ArgPack&, KeyT, const Q& q) {
|
||||
return q;
|
||||
}
|
||||
};
|
||||
@@ -645,7 +645,7 @@ BOOST_BGL_DECLARE_NAMED_PARAMS
|
||||
typedef boost::d_ary_heap_indirect<ValueT, 4, index_in_heap_map, typename map_maker<Graph, ArgPack, KeyMapTag, KeyT>::helper::map_type, Compare> priority_queue_type;
|
||||
|
||||
static priority_queue_type
|
||||
make_queue(const Graph& g, const ArgPack& ap, KeyT defaultKey, const Q& q) {
|
||||
make_queue(const Graph& g, const ArgPack& ap, KeyT defaultKey, const Q&) {
|
||||
return priority_queue_type(
|
||||
map_maker<Graph, ArgPack, KeyMapTag, KeyT>::make_map(g, ap, defaultKey),
|
||||
map_maker<Graph, ArgPack, IndexInHeapMapTag, default_index_in_heap_type>::make_map(g, ap, typename boost::property_traits<index_in_heap_map>::value_type(-1))
|
||||
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
typedef vertex_name_type argument_type;
|
||||
typedef VertexProperty result_type;
|
||||
|
||||
VertexProperty operator()(const vertex_name_type& name)
|
||||
VertexProperty operator()(const vertex_name_type&)
|
||||
{
|
||||
boost::throw_exception(std::runtime_error("add_vertex: "
|
||||
"unable to create a vertex from its name"));
|
||||
|
||||
@@ -460,7 +460,7 @@ template <class G>
|
||||
typename enable_if<is_reverse_graph<G>,
|
||||
detail::underlying_edge_desc_map_type<typename graph_traits<typename G::base_type>::edge_descriptor> >::type
|
||||
get(edge_underlying_t,
|
||||
G& g)
|
||||
G&)
|
||||
{
|
||||
return detail::underlying_edge_desc_map_type<typename graph_traits<typename G::base_type>::edge_descriptor>();
|
||||
}
|
||||
@@ -468,7 +468,7 @@ get(edge_underlying_t,
|
||||
template <class G>
|
||||
typename enable_if<is_reverse_graph<G>, typename graph_traits<typename G::base_type>::edge_descriptor>::type
|
||||
get(edge_underlying_t,
|
||||
G& g,
|
||||
G&,
|
||||
const typename graph_traits<G>::edge_descriptor& k)
|
||||
{
|
||||
return k.underlying_descx;
|
||||
@@ -477,7 +477,7 @@ get(edge_underlying_t,
|
||||
template <class G>
|
||||
typename enable_if<is_reverse_graph<G>, detail::underlying_edge_desc_map_type<typename graph_traits<typename G::base_type>::edge_descriptor> >::type
|
||||
get(edge_underlying_t,
|
||||
const G& g)
|
||||
const G&)
|
||||
{
|
||||
return detail::underlying_edge_desc_map_type<typename graph_traits<typename G::base_type>::edge_descriptor>();
|
||||
}
|
||||
@@ -485,7 +485,7 @@ get(edge_underlying_t,
|
||||
template <class G>
|
||||
typename enable_if<is_reverse_graph<G>, typename graph_traits<typename G::base_type>::edge_descriptor>::type
|
||||
get(edge_underlying_t,
|
||||
const G& g,
|
||||
const G&,
|
||||
const typename graph_traits<G>::edge_descriptor& k)
|
||||
{
|
||||
return k.underlying_descx;
|
||||
|
||||
@@ -270,7 +270,7 @@ namespace boost {
|
||||
{}
|
||||
|
||||
template <typename VertexOrEdge, typename Graph>
|
||||
void operator() (VertexOrEdge v, const Graph& g)
|
||||
void operator() (VertexOrEdge v, const Graph&)
|
||||
{
|
||||
put (property_map_, v, value_);
|
||||
}
|
||||
@@ -293,7 +293,7 @@ namespace boost {
|
||||
inline property_put <PropertyMap, EventTag>
|
||||
put_property (PropertyMap property_map,
|
||||
typename property_traits <PropertyMap>::value_type value,
|
||||
EventTag tag)
|
||||
EventTag)
|
||||
{
|
||||
return property_put <PropertyMap, EventTag> (property_map, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user