From 8868adc8911e4225e033d403794cff865fca6af9 Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Sat, 16 Sep 2006 17:36:03 +0000 Subject: [PATCH] Merged from HEAD: Changed specialization of encode_integral for bool to work around issues with the sun compiler [SVN r35135] --- include/boost/typeof/int_encoding.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/boost/typeof/int_encoding.hpp b/include/boost/typeof/int_encoding.hpp index 5b2bec4..552c250 100755 --- a/include/boost/typeof/int_encoding.hpp +++ b/include/boost/typeof/int_encoding.hpp @@ -71,12 +71,8 @@ namespace boost { namespace type_of { struct encode_integral : encode_size_t< V, (typename get_unsigned::type)n,(((typename get_unsigned::type)n)>=0x3fffffff) > {}; - template - struct encode_integral : encode_size_t< V, 1,false> - {}; - - template - struct encode_integral : encode_size_t< V, 0,false> + template + struct encode_integral : encode_size_t< V, b?1:0, false> {}; ///////////////////////////