Changeset 19260


Ignore:
Timestamp:
Oct 22, 2018, 7:04:09 PM (5 months ago)
Author:
tbretz
Message:
root 6 defined the a const -- worked around.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MEnv.h

    r18018 r19260  
    4343    Double_t    GetValue(const char *name, Double_t dflt);
    4444    const char *GetValue(const char *name, const char *dflt="");
     45
     46#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,00)
     47    Int_t       GetValue(const char *name, Int_t dflt) const
     48    {
     49        return const_cast<MEnv*>(this)->GetValue(name, dflt);
     50    }
     51    Double_t    GetValue(const char *name, Double_t dflt) const
     52    {
     53        return const_cast<MEnv*>(this)->GetValue(name, dflt);
     54    }
     55    const char *GetValue(const char *name, const char *dflt="") const
     56    {
     57        return const_cast<MEnv*>(this)->GetValue(name, dflt);
     58    }
     59#endif
    4560
    4661    // GetValue: regexp
Note: See TracChangeset for help on using the changeset viewer.