Re: [boost] [congif] BOOST_BEFRIEND_TEMPLATE, BOOST_PRIVATE

On Thu, 2005-03-03 at 23:21 +0100, JOAQUIN LOPEZ MU?Z wrote:
----- Mensaje original ----- De: Jonathan Turkanis <technews@kangaroologic.com> Fecha: Jueves, Marzo 3, 2005 9:49 pm Asunto: [boost] [congif] BOOST_BEFRIEND_TEMPLATE, BOOST_PRIVATE
#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
private:
template<class Y> friend class shared_ptr; template<class Y> friend class weak_ptr;
These 4 line of code I can read and understand.
BOOST_PRIVATE: BOOST_BEFRIEND_TEMPLATE(shared_ptr, Y, 1) BOOST_BEFRIEND_TEMPLATE(weak_ptr, Y, 1)
And these 2 lines don't mean anything I can grok.
personally, I don't like obfuscated code. /ikh

Iain Hanson wrote: On Thu, 2005-03-03 at 23:21 +0100, JOAQUIN LOPEZ MU?Z wrote:
----- Mensaje original ----- De: Jonathan Turkanis <technews@kangaroologic.com> Fecha: Jueves, Marzo 3, 2005 9:49 pm Asunto: [boost] [congif] BOOST_BEFRIEND_TEMPLATE, BOOST_PRIVATE
#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
private:
template<class Y> friend class shared_ptr; template<class Y> friend class weak_ptr;
These 4 line of code I can read and understand.
BOOST_PRIVATE: BOOST_BEFRIEND_TEMPLATE(shared_ptr, Y, 1) BOOST_BEFRIEND_TEMPLATE(weak_ptr, Y, 1)
And these 2 lines don't mean anything I can grok.
Thanks for your input.
personally, I don't like obfuscated code.
And you think I do? Obviously I wouldn't suggest the macros if I though it made code harder to understand.
/ikh
Jonathan
participants (2)
-
Iain Hanson
-
Jonathan Turkanis