From b422c1500845d6a0cd9c4086ae1f7a89b7ee3f22 Mon Sep 17 00:00:00 2001 From: Slavasil Date: Fri, 15 Nov 2024 23:25:05 +0300 Subject: [PATCH] fix undefined reference --- vk.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vk.h b/vk.h index e4d41f2..3653269 100644 --- a/vk.h +++ b/vk.h @@ -11,7 +11,9 @@ namespace vk { using namespace http; struct Post { - Post(long id, long date, long editDate, long fromId, std::string postType, std::string text); + inline Post(long id, long date, long editDate, long fromId, std::string postType, std::string text) + : id(id), date(date), editDate(editDate), fromId(fromId), postType(postType), text(text) + {} long id, date, editDate, fromId; std::string postType, text;