Changeset 2173


Ignore:
Timestamp:
Jan 27, 2010, 7:02:54 PM (12 years ago)
Author:
Peter
Message:

avoid copying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/OptionArg.h

    r2119 r2173  
    134134    }
    135135
    136     void assign(std::string& lhs, std::string rhs )
     136    void assign(std::string& lhs, const std::string& rhs )
    137137    {
    138138      lhs = rhs;
     
    140140   
    141141    template<class T1>
    142     void assign(T1& lhs, std::string rhs )
     142    void assign(T1& lhs, const std::string& rhs )
    143143    {
    144144      try {
Note: See TracChangeset for help on using the changeset viewer.