From 1b65bfc95d618de4fb78418dd501b3347a65322d Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Thu, 14 Sep 2006 17:39:57 +0000 Subject: [PATCH] Merged from HEAD: Fixed warnings on VC7.1 on integral encoding of bool [SVN r35110] --- include/boost/typeof/int_encoding.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/typeof/int_encoding.hpp b/include/boost/typeof/int_encoding.hpp index dea1bbd..5b2bec4 100755 --- a/include/boost/typeof/int_encoding.hpp +++ b/include/boost/typeof/int_encoding.hpp @@ -70,6 +70,14 @@ namespace boost { namespace type_of { template 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