
27 Jun
2005
27 Jun
'05
8:12 a.m.
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