Fixed packet compression

This commit is contained in:
WolverinDEV
2020-04-15 15:02:18 +02:00
parent 707736d896
commit 16c2272fe4
3 changed files with 51 additions and 5 deletions
+20
View File
@@ -7,6 +7,7 @@
#include <cassert>
#include <sql/SqlQuery.h>
#if 0
template <typename T>
struct Column {
constexpr explicit Column(const std::string_view& name) : name{name} { }
@@ -166,4 +167,23 @@ int main() {
std::string value{};
insert.add_entry(2, value);
insert.execute(nullptr);
}
#endif
struct A {
A() {}
~A() = default;
};
#include <set>
int main() {
std::set<int> elements{};
if(!elements.empty()) {
auto it = elements.begin();
const int* last_element{&*(it++)}; /* if elements would be empty this would be undefined behaviour */
while(it != elements.end()) {
const auto now = *it++;
const auto diff = last_element - now;
}
}
}