diff --git a/include/boost/pending/property.hpp b/include/boost/pending/property.hpp index 55b9789f..43577101 100644 --- a/include/boost/pending/property.hpp +++ b/include/boost/pending/property.hpp @@ -37,12 +37,12 @@ namespace boost { template struct has_property { - enum { value = true }; + BOOST_STATIC_CONSTANT(bool, value = true); typedef true_type type; }; template <> struct has_property { - enum { value = false }; + BOOST_STATIC_CONSTANT(bool, value = false); typedef false_type type; }; @@ -67,7 +67,8 @@ namespace boost { template inline typename property_value, Tag2>::type& get_property_value(property& p, Tag2 tag2) { - enum { match = detail::same_property::value }; + BOOST_STATIC_CONSTANT(bool, + match = (detail::same_property::value)); typedef property Prop; typedef typename property_value::type T2; T2* t2 = 0; @@ -78,7 +79,8 @@ namespace boost { inline const typename property_value, Tag2>::type& get_property_value(const property& p, Tag2 tag2) { - enum { match = detail::same_property::value }; + BOOST_STATIC_CONSTANT(bool, + match = (detail::same_property::value)); typedef property Prop; typedef typename property_value::type T2; T2* t2 = 0;