-
Notifications
You must be signed in to change notification settings - Fork 382
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
Strings and client call replies #177
Comments
Can you paste the declaration of the |
|
I have also tried the call as |
ok, so it is your client that you can't compile, right? Could you post your code, compiler version and complete compiler output? |
Client code #include "stdafx.h" int main() {
}` client header #include "targetver.h" #include <stdio.h> Client library std::string sendLog(std::string client_id,std::string Message, std::string level) { }` I'm not sure how to check the compiler version, but I'm using Visual Studio 2017 Community, and I think it might be 14.12.25827. The unknown compiler version messages are an artifact from a small bug in Boost. Complete compiler output: |
Hello, I am getting the exact same errors. |
Any update on this issue? I cannot use .as() for any type. I get the compiler error "error C2440: 'return': cannot convert from 'wchar_t *' to 'wchar_t *&'" for every type I attempt to return. Anyone find a workaround? Update:
...with error code: error C2039: 'value': is not a member of 'clmdep_msgpack::v1::type' |
I believe this might be related to the msgpack upgrade. Could you try v2.1.1 in your environment? (that's the version before the bundled msgpack was updated). |
Thanks, I built 2.1.1 and pointed my project at it. Now I cannot compile anything: rror C2440: 'return': cannot convert from 'clmdep_msgpack::v1::object_handle' to 'clmdep_msgpack::v1::object_handle' It complains mostly about missing copy constructors. |
You probably need to clear out your previous build and make sure that you are using both the headers and libs for that version. |
I figured it out! I went back to v2.2.1 and stepped through the example compiler config and compared each one with my project settings. It turns out that under Compiler->Language I had "Conformance mode" set to "Yes (/permissive-)". Once I set that to "No", it all compiled and worked fine. |
Hello again,
I am having issues with the client getting results from the server. The function it is calling is an std::string function, and my reply call looks like this:
reply=logClient.call("getMessage", command+" "+level).as<std::string>();
on the server side, the method is bound like so:
serv.bind("getMessage", getMessage);
When trying to build this, I get build errors.
object_fwd.hpp(66): error C2039: 'value': is not a member of 'clmdep_msgpack::v1::type'
note: see reference to class template instantiation 'clmdep_msgpack::v1::has_as<T>' being compiled 1> with 1> [ 1> T=std::string 1> ]
Clearly, I'm doing something wrong, but I'm not really sure what.
The text was updated successfully, but these errors were encountered: