mirror of
https://github.com/boostorg/typeof.git
synced 2025-05-09 23:14:01 +00:00
Fixed warnings on VC7.1 on integral encoding of bool
[SVN r35109]
This commit is contained in:
parent
34bcfef25a
commit
e689ac17bc
@ -70,6 +70,14 @@ namespace boost { namespace type_of {
|
||||
template<class V, class T, T n>
|
||||
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<std::size_t n, class Iter, bool overflow>
|
||||
|
Loading…
x
Reference in New Issue
Block a user