fixed compile error

This commit is contained in:
Benedikt Galbavy 2023-10-16 15:26:30 +02:00
parent 57df624034
commit 33f4093823

6
user.h
View File

@ -4,17 +4,17 @@
#include <string> #include <string>
#include <set> #include <set>
#include <vector>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <vector>
namespace fs = std::filesystem; namespace fs = std::filesystem;
using json = nlohmann::json; using json = nlohmann::json;
template <typename T> template <typename T>
static const bool ptr_cmp = [](T* left, T* right) { return *left < *right; }; static const bool ptr_cmp(T* left, T* right) { return *left < *right; };
typedef std::set<mail*, decltype(ptr_cmp<mail*>)> maillist; typedef std::set<mail*, decltype(ptr_cmp<mail*>)*> maillist;
class user { class user {
public: public: