Skip to content

Commit

Permalink
add: utils::fromSysString
Browse files Browse the repository at this point in the history
  • Loading branch information
elsamuko committed Aug 8, 2020
1 parent 733dbbc commit 2f082db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ enum class Color {
Reset
};

inline std::string fromSysString( const sys_string& sys ) {
return std::string( sys.cbegin(), sys.cend() );
}

constexpr unsigned long long int operator "" _MB( unsigned long long int in ) {
return in * 1024 * 1024;
}
Expand Down

0 comments on commit 2f082db

Please sign in to comment.