Skip to content

Commit

Permalink
Fixed issue #214
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Feb 6, 2020
1 parent 748c3f0 commit eeb938e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions include/jsoncons/sink.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class stream_sink
// Noncopyable
stream_sink(const stream_sink&) = delete;
stream_sink& operator=(const stream_sink&) = delete;
stream_sink& operator=(stream_sink&&) = delete;

public:
stream_sink(stream_sink&&) = default;
Expand All @@ -59,8 +60,6 @@ class stream_sink
os_->flush();
}

stream_sink& operator=(stream_sink&&) = default;

void flush()
{
os_->write(begin_buffer_, buffer_length());
Expand Down Expand Up @@ -124,6 +123,7 @@ class binary_stream_sink
// Noncopyable
binary_stream_sink(const binary_stream_sink&) = delete;
binary_stream_sink& operator=(const binary_stream_sink&) = delete;
binary_stream_sink& operator=(binary_stream_sink&&) = delete;

public:
binary_stream_sink(binary_stream_sink&&) = default;
Expand All @@ -150,8 +150,6 @@ class binary_stream_sink
os_->flush();
}

binary_stream_sink& operator=(binary_stream_sink&&) = default;

void flush()
{
os_->write((char*)begin_buffer_, buffer_length());
Expand Down Expand Up @@ -209,6 +207,7 @@ class string_sink
// Noncopyable
string_sink(const string_sink&) = delete;
string_sink& operator=(const string_sink&) = delete;
string_sink& operator=(string_sink&& val) = delete;
public:
string_sink(string_sink&& val)
: s_(nullptr)
Expand All @@ -221,11 +220,6 @@ class string_sink
{
}

string_sink& operator=(string_sink&& val)
{
std::swap(s_, val.s_);
}

void flush()
{
}
Expand Down Expand Up @@ -254,6 +248,7 @@ class bytes_sink
// Noncopyable
bytes_sink(const bytes_sink&) = delete;
bytes_sink& operator=(const bytes_sink&) = delete;
bytes_sink& operator=(bytes_sink&&) = delete;
public:
bytes_sink(bytes_sink&&) = default;

Expand All @@ -262,8 +257,6 @@ class bytes_sink
{
}

bytes_sink& operator=(bytes_sink&&) = default;

void flush()
{
}
Expand Down
2 changes: 1 addition & 1 deletion include/jsoncons/staj_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ class typed_array
span<const uint64_t> data(uint64_array_arg_t) const
{
JSONCONS_ASSERT(type_ == typed_array_type::uint64_value);
span<const uint64_t>(data_.uint64_data_, size_);
return span<const uint64_t>(data_.uint64_data_, size_);
}

span<int8_t> data(int8_array_arg_t)
Expand Down

0 comments on commit eeb938e

Please sign in to comment.