mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
use inline 'libraryVersion()' function (closes #858)
This commit is contained in:

committed by
Martin Hořeňovský

parent
cffb031ce1
commit
e04dc5105b
@@ -32,7 +32,7 @@ namespace Catch {
|
||||
void operator=( Version const& );
|
||||
};
|
||||
|
||||
extern Version libraryVersion;
|
||||
inline Version libraryVersion();
|
||||
}
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_VERSION_H_INCLUDED
|
||||
|
@@ -37,7 +37,10 @@ namespace Catch {
|
||||
return os;
|
||||
}
|
||||
|
||||
Version libraryVersion( 1, 8, 2, "", 0 );
|
||||
inline Version libraryVersion() {
|
||||
static Version version(1, 8, 2, "", 0);
|
||||
return version;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user