Boost logo

Boost :

From: Gennadiy E. Rozental (rogeeff_at_[hidden])
Date: 2001-09-07 10:11:35


Hi,

I propose following change in pool.hpp to be able to compile it with
Solaris Forte c++ 6u.1

Gennadiy.

cvs diff pool.hpp
Index: pool.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/pool/pool.hpp,v
retrieving revision 1.8
diff -r1.8 pool.hpp
29a30
> #if !defined __SUNPRO_CC || __SUNPRO_CC > 0x520
31a33,34
> #endif
>
94a98,100
> #if defined __SUNPRO_CC && __SUNPRO_CC <=0x520
> pool::lcm(sizeof(size_type), sizeof(void *)));
> #else
95a102
> #endif
112a120,122
> #if defined __SUNPRO_CC && __SUNPRO_CC <=0x520
> pool::lcm(sizeof(size_type), sizeof(void *)));
> #else
113a124
> #endif
141a153
> #if !defined __SUNPRO_CC
143a156
> #endif
182a196,198
> #if defined __SUNPRO_CC && __SUNPRO_CC <=0x520
> const unsigned min_size = boost::details::pool::lcm(sizeof
(void *), sizeof(size_type));
> #else
183a200
> #endif
419c436,441
< details::pool::ct_lcm<sizeof(size_type), sizeof(void *)
>::value + sizeof(size_type);

---
> #if defined __SUNPRO_CC && __SUNPRO_CC <=0x520
>       details::pool::lcm(sizeof(size_type), sizeof(void *))
> #else
>       details::pool::ct_lcm<sizeof(size_type), sizeof(void *)
>::value
> #endif
>       + sizeof(size_type);
443c465,470
<       details::pool::ct_lcm<sizeof(size_type), sizeof(void *)
>::value + sizeof(size_type);
---
> #if defined __SUNPRO_CC && __SUNPRO_CC <=0x520
>       details::pool::lcm(sizeof(size_type), sizeof(void *))
> #else
>       details::pool::ct_lcm<sizeof(size_type), sizeof(void *)
>::value
> #endif
>       + sizeof(size_type);
502c529,534
<       details::pool::ct_lcm<sizeof(size_type), sizeof(void *)
>::value + sizeof(size_type);
---
> #if defined __SUNPRO_CC && __SUNPRO_CC <=0x520
>       details::pool::lcm(sizeof(size_type), sizeof(void *))
> #else
>       details::pool::ct_lcm<sizeof(size_type), sizeof(void *)
>::value
> #endif
>       + sizeof(size_type);

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk