Boost logo

Boost :

From: Mark Rodgers (mark.rodgers_at_[hidden])
Date: 2000-09-01 02:42:21


> Second, both Borland and Microsoft compilers are rejecting brace
> initialization because the added private member means the class is now
> non-aggregate. Here is the temporary fix I applied:
>
> // private: // not allowed to brace initialization a non-aggregate
class
>
> I am assuming the long term fix is just to remove the line.

These compilers are broken. The standard is quite clear that the
only private members forbidden in an aggregate are private non-static
data members. Since I think rangecheck should be private, I suggest

#ifndef BOOST_NO_PRIVATE_IN_AGGREGATE
private:
#endif

and suitable additions to config.hpp.

Mark


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