Move the version information into an anonymous namespace

This effectively makes it a private member of the class.
This commit is contained in:
James P. Howard, II
2022-08-04 22:06:39 -04:00
parent 8742637ac8
commit 7a335feae2

View File

@@ -55,12 +55,14 @@
namespace kami {
/**
* @brief A reference copy of the current version of Kami
*
* @return the version as a `semver` object
*/
constexpr auto version = semver::version{KAMI_VERSION_MAJOR, KAMI_VERSION_MINOR, KAMI_VERSION_PATCH};
namespace {
/**
* @brief A reference copy of the current version of Kami
*
* @return the version as a `semver` object
*/
constexpr auto version = semver::version{KAMI_VERSION_MAJOR, KAMI_VERSION_MINOR, KAMI_VERSION_PATCH};
}
} // namespace kami