Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_version.h
diff options
context:
space:
mode:
authorPhil Nash2015-06-29 18:05:23 +0100
committerPhil Nash2015-06-29 18:06:15 +0100
commit21f7ef6fdcfcc98fa668028c02ba51643982e7cf (patch)
treebdf6b9ca32777405feeefa8a6f5e34481fe6f468 /include/internal/catch_version.h
parentf5fef1ebed9faaf12058d7a16223b4f617e6a5b6 (diff)
downloadcatch3-1.2.0.tar.gz
Committed to semantic versioningv1.2.0
as prompted by #365, #430, #447 and a thread on the google group. - split version bumping out of generateSingleHeader script - separate scripts for bumping each version component - "build" number only incremented for "develop" builds
Diffstat (limited to 'include/internal/catch_version.h')
-rw-r--r--include/internal/catch_version.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/internal/catch_version.h b/include/internal/catch_version.h
index ca2feef3..b6a97077 100644
--- a/include/internal/catch_version.h
+++ b/include/internal/catch_version.h
@@ -14,19 +14,20 @@ namespace Catch {
struct Version {
Version( unsigned int _majorVersion,
unsigned int _minorVersion,
- unsigned int _buildNumber,
- char const* const _branchName )
- : majorVersion( _majorVersion ),
- minorVersion( _minorVersion ),
- buildNumber( _buildNumber ),
- branchName( _branchName )
- {}
+ unsigned int _patchNumber,
+ std::string const& _branchName,
+ unsigned int _buildNumber );
unsigned int const majorVersion;
unsigned int const minorVersion;
+ unsigned int const patchNumber;
+
+ // buildNumber is only used if branchName is not null
+ std::string const branchName;
unsigned int const buildNumber;
- char const* const branchName;
+ friend std::ostream& operator << ( std::ostream& os, Version const& version );
+
private:
void operator=( Version const& );
};