[alohalytics] Moved reusable NoOpDeleter into event_base.h

This commit is contained in:
Alex Zolotarev 2015-06-19 21:03:59 +03:00
parent c91d6392bc
commit 61e0549d1c
2 changed files with 9 additions and 6 deletions

View file

@ -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_(

View file

@ -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;