Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2005-06-27 03:12:30


JOAQUIN LOPEZ MU?Z wrote:

> I'm no C++ guru, but I understand the construct is
> legal according to DR45. What puzzles me is that
> Compaq C++ is seemingly the only compiler failing on
> this, when the DR45 was approved well after the
> standard (in 2001, I think.)

Yes, in strict ansi mode Compaq C++ doesn't implement DR45 resolution. (See
also the thread "[test] missing friend declaration in class fixed_mapping?")

There were quite a number of failures due to this and I was hoping I found
all of them, but it seems you were faster than me on this one.

As Dave has already said, adding a friend declaration is usually the best
way to solve this, but I can't say if there are other compilers that will
choke on the friend declaration.

Markus


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