Skip to content

Compile warning with clang #214

@alekseyt

Description

@alekseyt

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions