18 lines
366 B
C++
18 lines
366 B
C++
#pragma once
|
|
#ifndef GITVERSION_VERSIONCOMPARE_H
|
|
#define GITVERSION_VERSIONCOMPARE_H
|
|
|
|
#include <string>
|
|
|
|
namespace gitversion {
|
|
class VersionCompare {
|
|
public:
|
|
static bool isOlderThan(const std::string &v1, const std::string &v2);
|
|
|
|
private:
|
|
static int _versionTagCompare(const std::string &tag1, const std::string &tag2);
|
|
};
|
|
}
|
|
|
|
#endif
|