mirror of
https://github.com/boostorg/typeof.git
synced 2025-07-29 20:37:28 +02:00
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:
@ -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>
|
||||
{};
|
||||
///////////////////////////
|
||||
|
||||
|
Reference in New Issue
Block a user