forked from organicmaps/organicmaps
[alohalytics] Moved reusable NoOpDeleter into event_base.h
This commit is contained in:
parent
c91d6392bc
commit
61e0549d1c
2 changed files with 9 additions and 6 deletions
|
@ -52,12 +52,6 @@ namespace alohalytics {
|
|||
|
||||
static constexpr const char * kAlohalyticsHTTPContentType = "application/alohalytics-binary-blob";
|
||||
|
||||
// Used for cereal smart-pointers polymorphic serialization.
|
||||
struct NoOpDeleter {
|
||||
template <typename T>
|
||||
void operator()(T *) {}
|
||||
};
|
||||
|
||||
// Use alohalytics::Stats::Instance() to access statistics engine.
|
||||
Stats::Stats()
|
||||
: messages_queue_(
|
||||
|
|
|
@ -39,6 +39,15 @@
|
|||
|
||||
#include "location.h"
|
||||
|
||||
// Small helper, used for cereal smart-pointers polymorphic serialization.
|
||||
// TODO(AlexZ): Remove it later together with Cereal.
|
||||
namespace alohalytics {
|
||||
struct NoOpDeleter {
|
||||
template <typename T>
|
||||
void operator()(T *) {}
|
||||
};
|
||||
} // namespace alohalytics
|
||||
|
||||
// For easier processing on a server side, every statistics event should derive from this base class.
|
||||
struct AlohalyticsBaseEvent {
|
||||
uint64_t timestamp;
|
||||
|
|
Loading…
Add table
Reference in a new issue