Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 9b1e354

Browse files
authored
Allow Span move-assignment. (#300)
There's already a warning about thread safety in the comments. Without this change, Context can't be move-assigned. Fixes #295.
1 parent 71fd6a7 commit 9b1e354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencensus/trace/span.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Span final {
118118
// Spans can be move-constructed, but this is mostly for convenient syntax,
119119
// not performance reasons.
120120
Span(Span&&) = default;
121-
Span& operator=(Span&&) = delete;
121+
Span& operator=(Span&&) = default;
122122

123123
// Attempts to insert an attribute into the Span, unless it already exists in
124124
// which case it will update the value of that attribute. If the max number of

0 commit comments

Comments
 (0)