Changeset 1053 in Sophya for trunk/SophyaLib/HiStats/hisprof.h


Ignore:
Timestamp:
Jun 30, 2000, 3:21:53 PM (25 years ago)
Author:
ansari
Message:

les friend operator ne marche plus ? passage en inline cmv 30/06/00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/hisprof.h

    r958 r1053  
    5252  HProf& operator = (const HProf& h);
    5353  HProf& operator += (const HProf& a);
    54   friend HProf operator + (const HProf& a, const HProf& b);
    5554
    5655  // Fit
     
    9493// ObjFileIO<HProf>
    9594
     95/*! \ingroup HiStats \fn operator+(const HProf&, const HProf&)
     96  \brief Operateur H = H1 + H2
     97  \warning Meme commentaire que pour l'operateur +=
     98*/
     99inline HProf operator + (const HProf& a, const HProf& b)
     100{
     101if (b.NBins()!=a.NBins()) THROW(sizeMismatchErr);
     102HProf c(a);
     103return (c += b);
     104}
    96105
    97106} // Fin du namespace
Note: See TracChangeset for help on using the changeset viewer.