proper cmake

This commit is contained in:
2023-06-04 16:10:06 +02:00
parent 13a8b4c35d
commit fdcb0cf0c4
154 changed files with 1273 additions and 1620 deletions

View File

@@ -0,0 +1,19 @@
//
// Created by Stepan Usatiuk on 05.05.2023.
//
#include "../includes/ContentsChangeDetector.h"
#include <iterator>
bool ContentsChangeDetector::check(const ComparableFile &f1, const ComparableFile &f2) const {
if (f1.type != f2.type) return true;
auto b1 = f1.contents();
auto b2 = f2.contents();
return !std::equal(std::istreambuf_iterator<char>(b1.get()),
std::istreambuf_iterator<char>(),
std::istreambuf_iterator<char>(b2.get()),
std::istreambuf_iterator<char>());
}