
























W suffix) are used consistently.
Some changes are made to synchronize ddnet's implementation with upstream (once https://github.com/teeworlds/teeworlds/pull/2936 has been merged there):
IOFLAG_RANDOM is removed (on up...












base/tl



void_t mess in https://github.com/ddnet/ddnet/blob/master/datasrc/seven/compile.py#L121-L134

c++
template<class T, typename std::enable_if<!protocol7::is_sixup<T>::value, int>::type = 0>
inline int SendPackMsg(T *pMsg, int Flags, int ClientID)



















































template <typename T>
concept IsUtf = std::is_same_v<T, char8_t> || std::is_same_v<T, char16_t>; //....
template<typename T>
void do_smth(T ...) requires IsUtf<T>
{
.. do smth for utf
}
template<typename T>
void do_smth(T ...) requires !IsUtf<T>
{
.. do smth for other types
} (edited)











W WinAPI function





std::filesystem::path file = "ÜÖÄÜÖÄ.txt"; already works as expected? (edited)



char8_t and u8"" junk?

#pragma once is not standardized, but it just works correctly everywhere

char

char array actually violates some standards, but again, it just works 


#include <filesystem>
#ifdef _WIN32
#include <locale.h>
#endif
int main()
{
#ifdef _WIN32
setlocale(LC_ALL, ".UTF-8");
#endif
const bool success = std::filesystem::create_directory("ÜÖÄÜÖÄ");
return (success) ? 0 : 1;
}






char 



x86_64-w64-mingw32-g++ (GCC) 10-win32 20210110

-std=c++20 at least
























maintest.cpp mh.cpp moduletest.o test.c test.cpp test.txt
a.out2 compile.sh main.cpp mh2.cpp moduletest.cppm moduletest.pcm test.c.obj test.exe tmp
seems like i like mh or *test
~/test 






























































t == li.QuadPart
time_t is still 32-bit on some platforms even today 


















SetForceCharacterTeam



int Status = (int)GameServer()->Collision()->m_pSwitchers[i].m_Status[Team()];














































































base/tl, Q: How do you think I should handle sorted_array?

CUuidManager inserts can always happen but currently they happen in bulk



























































std::binary_search should return a boolean?
1

lower_bound which is far less descriptive now
Return value
true if an element equal to value is found, false otherwise.

std::vector to get a sorted vector of our own. Should I inherit and delete the methods that can lead to the vector getting unsorted or should I keep the vector as a private member and only expose methods of my own?























add_unsorted and you expect it to sort somehow? How? by magic? 



add_unsorted and you expect it to sort somehow? How? by magic? 




menus_settings_assets.cpp:L386 e.g.








failed to open file. filename='assets/entities/comfort/blockworlds.png'













































































































CTeams::Snap and snap it there

CTeams of it's own with an array of switch states

































































