Permalink
Browse files

a clarification (#4)

  • Loading branch information...
1 parent e0ea9eb commit 7fecd7118de66e374227e685b68472eedf79008e @lookfwd lookfwd committed on GitHub Dec 6, 2016
Showing with 5 additions and 0 deletions.
  1. +5 −0 opentracing/tracer.h
@@ -135,6 +135,11 @@ class Tracer
* implementation-specific error if the format is supported but injection
* fails anyway.
*
+ * There's not specific reason for `Writer` being const. It's just to support
+ * the nice inline form described above. This might mean that you might have
+ * to use `mutable` in some cases. This `const` will be revised if there prove
+ * to be issues.
+ *
* See also `Tracer::join()`.
*/
virtual Result inject(const Span & sp, const Writer & writer, std::string & error) const = 0;

0 comments on commit 7fecd71

Please sign in to comment.