2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-30 20:02:12 +00:00

Changed to use property_traits in preparation for SFINAE-enabled property_traits

[SVN r60365]
This commit is contained in:
Jeremiah Willcock
2010-03-08 19:43:09 +00:00
parent 32d2dd1124
commit 205d3176a7
2 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ struct one_bit_color_map
template<typename IndexMap>
inline one_bit_color_type
get(const one_bit_color_map<IndexMap>& pm,
typename one_bit_color_map<IndexMap>::key_type key)
typename property_traits<IndexMap>::key_type key)
{
BOOST_STATIC_CONSTANT(int, bits_per_char = one_bit_color_map<IndexMap>::bits_per_char);
typename property_traits<IndexMap>::value_type i = get(pm.index, key);
@@ -72,7 +72,7 @@ get(const one_bit_color_map<IndexMap>& pm,
template<typename IndexMap>
inline void
put(const one_bit_color_map<IndexMap>& pm,
typename one_bit_color_map<IndexMap>::key_type key,
typename property_traits<IndexMap>::key_type key,
one_bit_color_type value)
{
BOOST_STATIC_CONSTANT(int, bits_per_char = one_bit_color_map<IndexMap>::bits_per_char);

View File

@@ -64,7 +64,7 @@ struct two_bit_color_map
template<typename IndexMap>
inline two_bit_color_type
get(const two_bit_color_map<IndexMap>& pm,
typename two_bit_color_map<IndexMap>::key_type key)
typename property_traits<IndexMap>::key_type key)
{
BOOST_STATIC_CONSTANT(int, elements_per_char = two_bit_color_map<IndexMap>::elements_per_char);
typename property_traits<IndexMap>::value_type i = get(pm.index, key);
@@ -77,7 +77,7 @@ get(const two_bit_color_map<IndexMap>& pm,
template<typename IndexMap>
inline void
put(const two_bit_color_map<IndexMap>& pm,
typename two_bit_color_map<IndexMap>::key_type key,
typename property_traits<IndexMap>::key_type key,
two_bit_color_type value)
{
BOOST_STATIC_CONSTANT(int, elements_per_char = two_bit_color_map<IndexMap>::elements_per_char);