Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 26, 2016, 8:32:16 PM (8 years ago)
Author:
muemart
Message:

Minor C++11 improvements:

  • Drop ImplicitConversion.h in favor of std::is_convertible.
  • Move constructor & assignment for MultiType and SubString. I'm not sure if the MultiType should convert types when moving. Currently it doesn't, because otherwise it would have no benefit over copying.
  • Use standard library functions for sleeping.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/util/SubString.h

    r11071 r11098  
    115115    public:
    116116        SubString();
     117        /// Copy constructor
     118        SubString(const SubString& other) = default;
     119        /// Move constructor
     120        SubString(SubString&& other) = default;
    117121        SubString(const std::string& line,
    118122                  const std::string& delimiters = SubString::WhiteSpaces,
     
    133137        // operate on the SubString
    134138        SubString& operator=(const SubString& other);
     139        /// Move assignment
     140        SubString& operator=(SubString&& other) = default;
    135141        bool operator==(const SubString& other) const;
    136142        bool compare(const SubString& other, size_t length = std::string::npos) const;
Note: See TracChangeset for help on using the changeset viewer.