You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have no problem in using the C + + standard type. Now I have customized the QT qstring to work, but when I want to use QT's qlist, I can't compile it, and the error "error c2039:" struct_to_str ": not a member of" qlist < T > ", I rewrite the conversion function. This is the" template < typename T >
JsonWriter& convert(const char*key, QList&data) {
x2struct_set_key(key);
this->array_begin();
for (size_t i=0; i<data.size(); ++i) {
this->convert("", data[i]);
}
this->array_end();
return *this;
}
The text was updated successfully, but these errors were encountered:
Thank you for your reply. Sorry, my code is the same as yours. The mistake in the problem is just the writing mistake. I have solved it by myself. In the written function, don't use "&" sign
Hello, I have no problem in using the C + + standard type. Now I have customized the QT qstring to work, but when I want to use QT's qlist, I can't compile it, and the error "error c2039:" struct_to_str ": not a member of" qlist < T > ", I rewrite the conversion function. This is the" template < typename T >
JsonWriter& convert(const char*key, QList&data) {
x2struct_set_key(key);
this->array_begin();
for (size_t i=0; i<data.size(); ++i) {
this->convert("", data[i]);
}
this->array_end();
return *this;
}
The text was updated successfully, but these errors were encountered: