RE: [boost] Re: BOOST_READONLY_PROPERTY macro

BOOST_CLASS_PROPERTY is used like this:
BOOST_CLASS_PROPERTY( int, (class1)(class2)...(classN) ) property;
How is that relevant?
Sorry supposed to be BOOST_READONLY_PROPERTY in both places. Gennadiy.

Rozental, Gennadiy wrote:
BOOST_CLASS_PROPERTY is used like this:
BOOST_CLASS_PROPERTY( int, (class1)(class2)...(classN) ) property;
How is that relevant?
So if I understand you correctly, you say that for instance BOOST_READONLY_PROPERTY( bool, (extended_pred_value) ) p_pred_value ; generates: friend class extended_predicate_value ; I'm pretty sure that this is not what it does so I'm sure I'm misunderstanding.

So if I understand you correctly, you say that for instance
BOOST_READONLY_PROPERTY( bool, (extended_pred_value) ) p_pred_value ;
generates:
friend class extended_predicate_value ;
I'm pretty sure that this is not what it does so I'm sure I'm misunderstanding.
No. Above statement generate class definition. Boost PP is used to generate friend declaration in this class. Gennadiy. P.S. Paul should know the answer

Gennadiy Rozental wrote:
So if I understand you correctly, you say that for instance
BOOST_READONLY_PROPERTY( bool, (extended_pred_value) ) p_pred_value ;
generates:
friend class extended_predicate_value ;
I'm pretty sure that this is not what it does so I'm sure I'm misunderstanding.
No. Above statement generate class definition. Boost PP is used to generate friend declaration in this class.
So you're saying BOOST_READONLY_PROPERTY generates a class definition ? And what has this to do with the friend declaration ??? Can you just please tell me what BOOST_READONLY_PROPERTY ( bool, (epv) ) will become once it is preprocessed ?
P.S. Paul should know the answer I don't think Paul knows about _all_ libraries that _use_ the PP library.
participants (3)
-
Gennadiy Rozental
-
Rozental, Gennadiy
-
Toon Knapen