From 94e79c95571b081d8c847e7bc395d5f7866c8708 Mon Sep 17 00:00:00 2001 From: madschemas <155993105+MadSchemas@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:18:40 +0300 Subject: [PATCH] [fix] Add duration_cast for osx compatibility --- cpp_src/events/serializer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp_src/events/serializer.h b/cpp_src/events/serializer.h index 7a1aeadfd..dd55e6bdd 100644 --- a/cpp_src/events/serializer.h +++ b/cpp_src/events/serializer.h @@ -31,7 +31,7 @@ class UpdateSerializer { ser_.PutVarint(opts.ServerID()); } if (opts.IsWithTimestamp()) { - ser_.PutVarint(rec.Timestamp().time_since_epoch().count()); + ser_.PutVarint(std::chrono::duration_cast(rec.Timestamp().time_since_epoch()).count()); } // WrSerializer tmpSer;