Changed specialization of encode_integral for bool to work around issues with the sun compiler

[SVN r35134]
This commit is contained in:
Peder Holt
2006-09-16 17:34:18 +00:00
parent 0dc2a5524b
commit 21ef2c54ec

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>
{};
///////////////////////////