Guild icon
Teeworlds
discord.gg/teeworlds / general
Teeworlds Discord Server.
Between 2019-12-07 00:00:00Z and 2019-12-08 00:00:00Z
Avatar
ChillerDragon 2019-12-07 01:06:43Z
Is SNSnoop here or does someone know how to contact him? Got a compiling problem on mkddr and issues are deactivated :/ /Users/chillerdragon/Desktop/git/mkRace/src/game/server/mkjson.cpp:68:27: error: non-aggregate type 'std::vector<std::string>' (aka 'vector<basic_string<char, char_traits<char>, allocator<char> > >') cannot be initialized with an initializer list std::vector<std::string> plr = {"id", idstr.str(), "name", Server->ClientName(id)}; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avatar
@ChillerDragon sounds like too old C++ version
Avatar
ChillerDragon 2019-12-07 01:29:44Z
yea thats what i was afraight of
01:30
is it a new trend to use c++2020 features now or do my compilers just oudated?
Avatar
initializers :/
Avatar
@ChillerDragon you can likely specify the standard version
07:02
-std=gnuxx17 or something like that
Avatar
I would try putting all c-strings in curly braces in order to indicate a std::string construction. (edited)
10:58
but I doubt it will work.
10:59
maybe an std::array can be initialized in such a way, as this seems to be a fixed size array
11:04
stackoverflow suggests removing the = before the initializer list.
Avatar
ChillerDragon 2019-12-07 11:07:45Z
well thanks heinrich and jxsl i will try that when i get hands on my mac again
Avatar
@ChillerDragon you may have to set some flags for cmake
11:08
I already did that somewhere <.<
Stalker• joined the server. 2019-12-07 13:46:17Z
Avatar
ay
Deleted User joined the server. 2019-12-07 21:37:52Z
Avatar
@Deleted User hey😉
Avatar
hi! Nice to see you here!
22:52
😄
Exported 20 message(s)