From ad6d5c75cdb21591701b7b565776065bc0e9155e Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 17 Feb 2003 07:58:00 +0000 Subject: [PATCH] Use BOOST_STATIC_CONSTANT. [SVN r17475] --- include/boost/pending/property.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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;