|
From: Jose' C. <cru...@ce...> - 2005-01-17 23:19:59
|
Il giorno 17/gen/05, alle 21:23, James W. Walker ha scritto: > I guess I can get used to not using the and, or, and not keywords,=20 > maybe they're not standard. probably we can do it with a #define > Making a class a friend to itself is bizarre, but maybe it won't=20 > come up too often. I don't know about standards in this case, but it can have a sense, the=20= error given because in a method is used a private (if changed to=20 protected it works) member of another object of the same class coming from Microsoft pushing a bit the 'private property' concept is=20 no surprising :-) > I'm really worried about the change below. What was the compiler=20 > complaining about? Looks like standard C++ to me, and certainly seems=20= > to be permitted according to sections 8.5.1 and 12.6.1 of the 1998 C++=20= > standard. the error is C2552 from the VC 6.0 manual ------------------ Compiler Error C2552 'identifier' : non-aggregates cannot be initialized with initializer=20 list The specified identifier was incorrectly initialized. An initializer list is needed to initialize the following types: =95 An array =95 A class, structure, or union that does not have = constructors,=20 private or protected members, base classes, or virtual functions These types are known as =93aggregates.=94 ------------------ with these criteria the error is legitimate since the CQ3ObjectRef has=20= a constructor now the question is 'are these criteria legitimate?' Pax et Bonum # dott. Jose' Cruanyes Aguilar - C.E. Soft srl # Pzza. Firenze,4 MILANO - XX Settembre 10, CREMONA # 02,33603122 0372,460602 |