Removed dead code.

[SVN r35585]
This commit is contained in:
John Maddock
2006-10-13 09:19:09 +00:00
parent d5a7f6f622
commit f26b33201b

View File

@ -19,42 +19,7 @@ template <class T, T val>
#endif
struct integral_constant : public mpl::integral_c<T, val>
{
//BOOST_STATIC_CONSTANT(T, value = val);
//typedef T value_type;
typedef integral_constant<T,val> type;
#if 0
//
// everything that follows now, is MPL-compatibility code:
//
typedef ::boost::mpl::integral_c_tag tag;
// have to #ifdef here: some compilers don't like the 'val + 1' form (MSVC),
// while some other don't like 'value + 1' (Borland), and some don't like
// either
#if BOOST_WORKAROUND(__EDG_VERSION__, <= 243)
private:
BOOST_STATIC_CONSTANT(T, next_value = BOOST_MPL_AUX_STATIC_CAST(T, (val + 1)));
BOOST_STATIC_CONSTANT(T, prior_value = BOOST_MPL_AUX_STATIC_CAST(T, (val - 1)));
public:
typedef integral_constant<T,next_value> next;
typedef integral_constant<T,prior_value> prior;
#elif BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x561)) \
|| BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(502)) \
|| BOOST_WORKAROUND(__HP_aCC, BOOST_TESTED_AT(53800))
typedef integral_constant<T, ( BOOST_MPL_AUX_STATIC_CAST(T, (val + 1)) )> next;
typedef integral_constant<T, ( BOOST_MPL_AUX_STATIC_CAST(T, (val - 1)) )> prior;
#else
typedef integral_constant<T, ( BOOST_MPL_AUX_STATIC_CAST(T, (value + 1)) )> next;
typedef integral_constant<T, ( BOOST_MPL_AUX_STATIC_CAST(T, (value - 1)) )> prior;
#endif
// enables uniform function call syntax for families of overloaded
// functions that return objects of both arithmetic ('int', 'long',
// 'double', etc.) and wrapped integral types (for an example, see
// "mpl/example/power.cpp")
operator T() const { return static_cast<T>(this->value); }
#endif
};
template<> struct integral_constant<bool,true> : public mpl::true_