Merged from HEAD: Changed specialization of encode_integral for bool to work around issues with the sun compiler

[SVN r35135]
This commit is contained in:
Peder Holt
2006-09-16 17:36:03 +00:00
parent 452b493b7a
commit 8868adc891

View File

@ -71,12 +71,8 @@ namespace boost { namespace type_of {
struct encode_integral : encode_size_t< V, (typename get_unsigned<T>::type)n,(((typename get_unsigned<T>::type)n)>=0x3fffffff) >
{};
template<class V>
struct encode_integral<V,bool,true> : encode_size_t< V, 1,false>
{};
template<class V>
struct encode_integral<V,bool,false> : encode_size_t< V, 0,false>
template<class V, bool b>
struct encode_integral<V, bool, b> : encode_size_t< V, b?1:0, false>
{};
///////////////////////////