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;