logging: set the thread name for the AsyncFileWriter thread
[folly.git] / folly / Try-inl.h
index e70fce72c8d807e50ad3beb79732d50ab0e68dc1..711c1a0905278f3d56a705563604a86fc6f51d50 100644 (file)
@@ -117,6 +117,12 @@ const T& Try<T>::value() const & {
   return value_;
 }
 
+template <class T>
+const T&& Try<T>::value() const && {
+  throwIfFailed();
+  return std::move(value_);
+}
+
 template <class T>
 void Try<T>::throwIfFailed() const {
   switch (contains_) {