|
From: Gabriel D. R. <Gab...@cm...> - 2000-08-23 22:37:56
|
"Frank V. Castellucci" <fr...@co...> writes: | Christophe Prud'homme wrote: | > | > > > * class is missing in Friend declaraion in Synchronized.hpp | > > | > > don't need it because it is foward declared in | > > DECLARE_CLASS(Synchronized) as per C++ standard. | > > Are you getting an error? | > Yes ! | | Ok, interesting, I'll re-review the C++ standard 1998(E) The interesting part is clause 2 about lexical conventions -- take a look at the paragraphs about preprocessing tokens then go to 16.3.3 about "The ## operator". It says: 16.3.3/3: For both object-like and function-like macro invocations, before the replacement list is reexamined for more macro names to replace,e ach instance of ## preprocessing token in the replacement list (not from an argument) is deleted and the preceding preprocessing token is concatenated with the following preprocessing token. If the result is not a valid preprocessing token, the behavior is undefined. [...] -- Gaby |