fixed a few bugs in new TorManager

This commit is contained in:
csoler 2021-12-09 22:19:00 +01:00
parent a757419d65
commit 7c77cfd603
7 changed files with 23 additions and 15 deletions

View file

@ -32,6 +32,8 @@ public:
void append(const ByteArray& b) { for(auto c:b) push_back(c); }
void append(const char *b) { for(uint32_t n=0;b[n]!=0;++n) push_back(b[n]); }
template<class T> void append(const T) = delete;// Prevents any implicit when calling the preceding functions which actually causes real bugs.
ByteArray& operator+=(const ByteArray& b) { for(auto c:b) push_back(c); return *this; }
ByteArray& operator+=(const char *b) { for(uint32_t n=0;b[n]!=0;++n) push_back(b[n]); return *this;}