Add Variant debug.
GitOrigin-RevId: 49cd9c29f8d2b9db908f0f13c0ba149598008c2e
This commit is contained in:
parent
28bfa4c4a6
commit
082a132edc
@ -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
|
||||
|
@ -170,7 +170,7 @@ class Variant {
|
||||
|
||||
template <class T>
|
||||
void init_empty(T &&t) {
|
||||
CHECK(offset_ == npos);
|
||||
CHECK(offset_ == npos) << offset_ << ' ' << typeid(T).name() << ' ' << typeid(*this).name();
|
||||
offset_ = offset<T>();
|
||||
new (&get<T>()) std::decay_t<T>(std::forward<T>(t));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user