diff --git a/tdutils/td/utils/HttpUrl.h b/tdutils/td/utils/HttpUrl.h index bf7536477..bb2597e9f 100644 --- a/tdutils/td/utils/HttpUrl.h +++ b/tdutils/td/utils/HttpUrl.h @@ -24,6 +24,16 @@ class HttpUrl { string query_; string get_url() const; + + HttpUrl(Protocol protocol, string userinfo, string host, bool is_ipv6, int specified_port, int port, string query) + : protocol_(protocol) + , userinfo_(std::move(userinfo)) + , host_(std::move(host)) + , is_ipv6_(is_ipv6) + , specified_port_(specified_port) + , port_(port) + , query_(std::move(query)) { + } }; // TODO Slice instead of MutableSlice diff --git a/tdutils/td/utils/Variant.h b/tdutils/td/utils/Variant.h index 9b6e0561c..3907d0cbc 100644 --- a/tdutils/td/utils/Variant.h +++ b/tdutils/td/utils/Variant.h @@ -170,7 +170,7 @@ class Variant { template void init_empty(T &&t) { - CHECK(offset_ == npos); + CHECK(offset_ == npos) << offset_ << ' ' << typeid(T).name() << ' ' << typeid(*this).name(); offset_ = offset(); new (&get()) std::decay_t(std::forward(t)); }