fixed compile error
This commit is contained in:
parent
57df624034
commit
33f4093823
6
user.h
6
user.h
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user