dblaikie added a comment.

Yeah, might be worth changing toStringRef to only accept bools:

  template<typename T>
  typename std::enable_if<std::is_same<T, bool>::value, StringRef>::type 
toStringRef(T B) { ... }

Or something like that?

That'd avoid accidental "toStringRef(5)" or the like...


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65942/new/

https://reviews.llvm.org/D65942



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to