friends

Chris Jillings (chris@owl.phy.queensu.ca)
Wed, 1 Jul 1998 15:33:58 -0400 (EDT)


Hi all,
I have gone from simple root programming to jumping in the deep end.
I have a class, QThreeVec, which handles 3-vectors in an elegant way. It
has been working for years here in other codes.
I took on the task of rootifying it. The code compiles but the
dictionary generation fails. I thought that perhaps friend functions were
causing the trouble. The friend functions are ncessary to ensure that an
expression like
ThreeVec u,v;
Float_t a;
v=u*a;

behaves in the same way as
v=a*u;

Does the dictionary handle friends?
Thanks,

Chris

=================================================================
= =
= Chris Jillings =
= Department of Physics phone/voice mail: (613) 545-6000x4805 =
= Queen's University fax: (613) 545-6813 =
= Kingston, Ontario email: chris@sno.phy.queensu.ca =
= Canada, K7L 3N6 web: http://sno.phy.queensu.ca =
= =
=================================================================