Skip to content
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

Compile warning with clang #214

Closed
alekseyt opened this issue Feb 6, 2020 · 2 comments
Closed

Compile warning with clang #214

alekseyt opened this issue Feb 6, 2020 · 2 comments

Comments

@alekseyt
Copy link

alekseyt commented Feb 6, 2020

This is not a big deal, i'm not aware of any issues caused by this warning, but i thought i'll ask anyway:

.../include/jsoncons/sink.hpp:265:17: warning: explicitly
      defaulted move assignment operator is implicitly deleted
      [-Wdefaulted-function-deleted]
    bytes_sink& operator=(bytes_sink&&) = default;
                ^
.../include/jsoncons/sink.hpp:252:18: note: move assignment
      operator of 'bytes_sink' is implicitly deleted because field 's_' is of
      reference type 'jsoncons::bytes_sink::output_type &' (aka 'vector<unsigned
      char> &')
    output_type& s_;
                 ^

This warning appears when cross-compiling for OSX with clang 8. I'm using jsoncons 0.144.0

danielaparker added a commit that referenced this issue Feb 6, 2020
@danielaparker
Copy link
Owner

Thanks for reporting this. Fixed on master.

@alekseyt
Copy link
Author

alekseyt commented Feb 7, 2020

I've updated jsoncons from master and it compiles without any warnings. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants