22 : _string_representation{
"0.0"}
25Version::Version(
unsigned major_version,
unsigned minor_version, std::string_view suffix)
26 : _major{major_version}
27 , _minor{minor_version}
32 :
Version(major_version, minor_version,
"")
45 ss.exceptions(std::ios::failbit | std::ios::badbit);
46 unsigned major, minor;
58 ss.exceptions(std::ios::goodbit);
60 return Version{major, minor, suffix};
static std::optional< Version > from_string(const char *version_string)
Build a Version form a string, returning an empty optional in case of error.
std::string _string_representation
std::string _suffix
For example, for development version.
std::string const & str() const
Helper class to stream background task notifications as a series of messages.
char const * version_string
full version string