operator<< segfault

From: Bob McElrath <bob+root_at_mcelrath.org>
Date: Wed, 25 Oct 2006 11:28:04 -0700


I have had the following macro defined for several years (it worked through root versions 3 and 4), but with recent releases (5.13) it causes root to crash.

ostream& operator<<(ostream& out, const TLorentzVector v) {

    out << "(" << v.X() << ", " << v.Y() << ", " << v.Z() << "; " << v.T() << ")";     out.flush();
}

root [0] .L Physics/root/macros-autoload/cout.C

--
Cheers,
Bob McElrath [Univ. of California at Davis, Department of Physics]

    A people that values its privileges above its principles soon loses both. 
    - Dwight Eisenhower

Received on Wed Oct 25 2006 - 20:28:24 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET