aboutsummaryrefslogtreecommitdiff
path: root/butl/standard-version.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-27 15:11:56 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-27 15:26:12 +0300
commitdad361a3415e88475a78d1b2702133629fb6e548 (patch)
tree3d92aa7e87ca5a3dd3a1155f8317d677878182d2 /butl/standard-version.ixx
parent4b7dfd5a9c0e8f5aeacd14b2e629993550eef2b7 (diff)
Add standard_version_constraint struct
Diffstat (limited to 'butl/standard-version.ixx')
-rw-r--r--butl/standard-version.ixx14
1 files changed, 7 insertions, 7 deletions
diff --git a/butl/standard-version.ixx b/butl/standard-version.ixx
index e414deb..b01faef 100644
--- a/butl/standard-version.ixx
+++ b/butl/standard-version.ixx
@@ -18,7 +18,7 @@ namespace butl
}
inline std::uint16_t standard_version::
- major () const
+ major () const noexcept
{
std::uint64_t v (version / 10);
std::uint64_t ab (v % 1000);
@@ -29,7 +29,7 @@ namespace butl
}
inline std::uint16_t standard_version::
- minor () const
+ minor () const noexcept
{
std::uint64_t v (version / 10);
std::uint64_t ab (v % 1000);
@@ -40,7 +40,7 @@ namespace butl
}
inline std::uint16_t standard_version::
- patch () const
+ patch () const noexcept
{
std::uint64_t v (version / 10);
std::uint64_t ab (v % 1000);
@@ -51,7 +51,7 @@ namespace butl
}
inline std::uint16_t standard_version::
- pre_release () const
+ pre_release () const noexcept
{
std::uint64_t ab (version / 10 % 1000);
if (ab > 500)
@@ -61,21 +61,21 @@ namespace butl
}
inline bool standard_version::
- alpha () const
+ alpha () const noexcept
{
std::uint64_t abe (version % 10000);
return abe > 0 && abe < 5000;
}
inline bool standard_version::
- beta () const
+ beta () const noexcept
{
std::uint64_t abe (version % 10000);
return abe > 5000;
}
inline int standard_version::
- compare (const standard_version& v) const
+ compare (const standard_version& v) const noexcept
{
if (epoch != v.epoch)
return epoch < v.epoch ? -1 : 1;