Skip to content

Commit

Permalink
C++11: Replace boost::is_const with std::is_const.
Browse files Browse the repository at this point in the history
  • Loading branch information
murraycu committed May 16, 2017
1 parent 32bcb9a commit 8f55abc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/boost/graph/reverse_graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ namespace detail {
template <class BidirGraph, class GRef, class Property>
struct property_map<reverse_graph<BidirGraph, GRef>, Property> {
typedef std::is_same<typename detail::property_kind_from_graph<BidirGraph, Property>::type, edge_property_tag> is_edge_prop;
typedef boost::is_const<typename boost::remove_reference<GRef>::type> is_ref_const;
typedef std::is_const<typename boost::remove_reference<GRef>::type> is_ref_const;
typedef typename boost::mpl::if_<
is_ref_const,
typename property_map<BidirGraph, Property>::const_type,
Expand Down Expand Up @@ -514,7 +514,7 @@ set_property(const reverse_graph<BidirectionalGraph,GRef>& g, Tag tag,
template<typename BidirectionalGraph, typename GRef, typename Tag>
inline
typename boost::mpl::if_<
boost::is_const<typename boost::remove_reference<GRef>::type>,
std::is_const<typename boost::remove_reference<GRef>::type>,
const typename graph_property<BidirectionalGraph, Tag>::type&,
typename graph_property<BidirectionalGraph, Tag>::type& >::type
get_property(const reverse_graph<BidirectionalGraph,GRef>& g, Tag tag)
Expand Down
4 changes: 2 additions & 2 deletions include/boost/graph/subgraph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ class subgraph_global_property_map
{
typedef property_traits<PropertyMap> Traits;
public:
typedef typename mpl::if_<is_const<typename remove_pointer<GraphPtr>::type>,
typedef typename mpl::if_<std::is_const<typename remove_pointer<GraphPtr>::type>,
readable_property_map_tag,
typename Traits::category>::type
category;
Expand Down Expand Up @@ -803,7 +803,7 @@ class subgraph_local_property_map
{
typedef property_traits<PropertyMap> Traits;
public:
typedef typename mpl::if_<is_const<typename remove_pointer<GraphPtr>::type>,
typedef typename mpl::if_<std::is_const<typename remove_pointer<GraphPtr>::type>,
readable_property_map_tag,
typename Traits::category>::type
category;
Expand Down
2 changes: 1 addition & 1 deletion include/boost/pending/property.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ namespace detail {
typedef typename boost::function_traits<F>::arg1_type a1;
typedef typename boost::remove_reference<a1>::type non_ref;
typedef typename non_ref::next_type nx;
typedef typename boost::mpl::if_<boost::is_const<non_ref>, std::add_const<nx>, nx>::type with_const;
typedef typename boost::mpl::if_<std::is_const<non_ref>, std::add_const<nx>, nx>::type with_const;
typedef typename boost::add_reference<with_const>::type type;
};
template <typename Prop>
Expand Down

0 comments on commit 8f55abc

Please sign in to comment.