NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4172


Ignore:
Timestamp:
Jul 24, 2009, 1:55:15 PM (8 years ago)
Author:
bless
Message:
  • automatic use of default type for configpar constructor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protlib/branches/20081127-merge-mobility-mk3/include/configpar.h

    r4142 r4172  
    180180 *
    181181 **/
    182 template <class T> class configpar : public configparBase
     182template <typename T> class configpar : public configparBase
    183183{
    184184public:
    185185  configpar<T>(const T& default_value) : configparBase(), value(default_value) {};
    186         configpar<T>(realm_id_t realm, configpar_id_t configparid, const char* name, const char* description, bool changeable_while_running, const T& default_value, const char* unitinfo= NULL) : configparBase(realm, configparid, name, description, changeable_while_running, unitinfo), value(default_value) {};
     186  configpar<T>(realm_id_t realm, configpar_id_t configparid, const char* name, const char* description, bool changeable_while_running, const T& default_value= T(), const char* unitinfo= NULL) : configparBase(realm, configparid, name, description, changeable_while_running, unitinfo), value(default_value) {};
    187187
    188188  T getPar() const throw() { return value; }
     
    223223
    224224// use the default output operator for this type
    225 template<class T>
     225template<typename T>
    226226inline
    227227ostream&
     
    232232
    233233// use the default input operator for this type
    234 template<class T>
     234template<typename T>
    235235inline
    236236istream&
     
    241241
    242242
    243 template<class T>
     243template<typename T>
    244244inline
    245245ostream&
     
    250250
    251251
    252 template<class T>
     252template<typename T>
    253253inline
    254254istream&
     
    259259
    260260
    261 template<class T>
     261template<typename T>
    262262inline
    263263ostream&
     
    269269
    270270
    271 template<class T>
     271template<typename T>
    272272inline
    273273istream&
Note: See TracChangeset for help on using the changeset viewer.