-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: 'auto' not allowed in lambda parameter #53
Comments
Hi, could you try reformatting that code so that it's easier to follow what you're asking? |
I just downloaded the code and tried to compile it with Qt5.15.0.. But this dont seem to be the problem for windows, but I am getting this error: error: definition of static data member 'jcon::JsonRpcServer::InvalidRequestId' of dllimport'd class Have you tested it with Qt5.15.0? Best regards |
Just tried Qt 5.15, and had to suppress a deprecation warning (pushed the change to master), but other than that it should work fine (I'm on Arch Linux though, I haven't tried it on Windows). |
Thanks! I was able to compile it on my mac, but when i tested the example code this was the result: Creating TCP server Any tips for why it is failing? Best regards! |
Hello!
I am getting this error in json_rpc_server.cpp: error: 'auto' not allowed in lambda parameter
in method:
QString logInvoke(const QMetaMethod& meta_method,
const QVariantList& args,
const QVariant& return_value)
{
const auto ns = meta_method.parameterNames();
auto ps = jcon::variantListToStringList(args);
QStringList args_sl;
std::transform(ns.begin(), ns.end(), ps.begin(),
std::back_inserter(args_sl),
[](auto x, auto y) -> QString {
return static_cast(x) + ": " + y;
}
);
}
not sure why?
best regards
The text was updated successfully, but these errors were encountered: