Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2005-05-25 11:11:24


On May 25, 2005, at 11:39 AM, David Abrahams wrote:

>
> Can arguments to compressed_pair be const-qualified? The
> documentation only lists this restriction:
>
> Note that compressed_pair can not be instantiated if either of the
> template arguments is a union type, unless there is compiler support
> for boost::is_union, or if boost::is_union is specialised for the
> union type.
>
> I believe I am getting an error from Intel C++ when an argument to
> compressed_pair is const. The question is whether we need a
> workaround in compressed_pair.hpp or a change to the html
> documentation.

I don't see any reason for compressed_pair to have different behavior
than pair with respect to const (i.e. a const member must be
initialized).

-Howard


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