fix undefined reference

This commit is contained in:
Slavasil 2024-11-15 23:25:05 +03:00
parent fb35fa5ed2
commit b422c15008

4
vk.h
View File

@ -11,7 +11,9 @@ namespace vk {
using namespace http; using namespace http;
struct Post { 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; long id, date, editDate, fromId;
std::string postType, text; std::string postType, text;