-
Notifications
You must be signed in to change notification settings - Fork 887
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
Feature vs2015 support #339
Conversation
…tructible_values Support vectors of non-default-constructible values in c++11 mode
Fix compilation warnings about possible loss of data
It seems that your PR got compile errors on MSVC. https://ci.appveyor.com/project/redboltz/msgpack-c/build/1.1.0.82 Recently, I merged many PRs. Some of problems that your PR solves have already solved. Could you review your PR? I recommend that close this PR once and create another one that is focused on the rest issues. |
I misunderstood about your PR. Please ignore above comment. I checked https://github.com/msgpack/msgpack-c/pull/339/files again. I understand that you are trying to support C++11 on MSVC2015. msgpack-c requires many C++11 features on C++11 mode. I'm not sure MSVC2015 supports them. If MSVC2015 support them, it's time to use msgpack-c C++11 mode on MSVC2015. It seems that the Appveyor uses MSVC 2015. The log message said "Visual Studio 14 2015". So, could you check https://ci.appveyor.com/project/redboltz/msgpack-c/build/1.1.0.82 ? |
Hello, |
Hi @jonitis, thank you for the reply. I understand your situation. Now, I started developing msgpack-c C++11 mode on MSVC2015. However, I got some errors. I suspect that MSVC's bug but I need to write a minimal code to reproduce the bug. Anyway, I will inform you when C++11 mode of the msgpack-c would support MSVC2015. |
Takatoshi san, thank you very much for your promptly replies. I appreciate very much how fast you integrated my pull requests etc. Now msgpack fullfills my needs, but if something annoying will show up with VS2015 I will propose at least initial patch. Unfortunately I can't spend too much time on VS, since our main platform is Linux on OpenWrt. |
Merged. In the case that std::tuple contains non default constructible classes, when calling 'as' operation, compiler error is occurred. The error said that default constructor is called from std::tuple. I'm not sure why it happens. That is only one problem that I recognized, so far. I decided to merge the PR with some modification. If someone remove #if !defined(_MSC_VER) from the code I mentioned above, and would fix the compile error, msgpack-c C++11 support for MSVC2015 would complete. |
@redboltz Currently still can't use msgpack static library with MSVC 2015 Compiler, it gives me following compiler time errors:
|
@reza-ebrahimi msgpack-c passes all tests on MSVC2015. See appveyor result: Which code did you get the error? |
@redboltz Assume that I have a simple class named
When try to build above class with
and:
for more information, when configure and generate project file using cmake, it generate some warnings:
|
@reza-ebrahimi, could you post a minimal and complete source code that reproduces the error? Even if the error happens in the msgpack-c header, I can't find the reason without the source code. |
@reza-ebrahimi, what does the project pictures mean? I need a minimal and complete program. |
@redboltz I send to you my test project, please download and compile it, is it ok? https://www.dropbox.com/s/kuqyk6i2ksy02da/msgpackCompileError.rar?dl=0 Test project compile error snapshot: |
@reza-ebrahimi, thank you! I will check it. |
I reproduced the problem. I will fix it soon. By the way, msgpack-c provides Of course, if you include |
I create the issue for the problem. See #463. |
Visual Studio 2015 is c++11 compliant.
Just had to fix one error about member ref-specifiers.