Commit edcd66e1 authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

Upgrade error level for deprecation attributes

Summary: Make deprecation messages firmer.

Reviewed By: WillerZ

Differential Revision: D10855134

fbshipit-source-id: 181bc0ed6d5ccaefdca22264182e8fbe47c1a9b9
parent 6eb37d26
...@@ -1160,7 +1160,7 @@ class Future : private futures::detail::FutureBase<T> { ...@@ -1160,7 +1160,7 @@ class Future : private futures::detail::FutureBase<T> {
/// thenTry or thenError rather than then and onError as they avoid ambiguity /// thenTry or thenError rather than then and onError as they avoid ambiguity
/// when using polymorphic lambdas. /// when using polymorphic lambdas.
template <typename F, typename R = futures::detail::callableResult<T, F>> template <typename F, typename R = futures::detail::callableResult<T, F>>
[[deprecated("use thenValue instead")]] typename std::enable_if< [[deprecated("ERROR: use thenValue instead")]] typename std::enable_if<
!is_invocable<F>::value && is_invocable<F, T&&>::value, !is_invocable<F>::value && is_invocable<F, T&&>::value,
typename R::Return>::type typename R::Return>::type
then(F&& func) && { then(F&& func) && {
...@@ -1168,7 +1168,7 @@ class Future : private futures::detail::FutureBase<T> { ...@@ -1168,7 +1168,7 @@ class Future : private futures::detail::FutureBase<T> {
} }
template <typename F, typename R = futures::detail::callableResult<T, F>> template <typename F, typename R = futures::detail::callableResult<T, F>>
[[deprecated("use thenTry instead")]] typename std::enable_if< [[deprecated("ERROR: use thenTry instead")]] typename std::enable_if<
!is_invocable<F, T&&>::value && !is_invocable<F>::value, !is_invocable<F, T&&>::value && !is_invocable<F>::value,
typename R::Return>::type typename R::Return>::type
then(F&& func) && { then(F&& func) && {
...@@ -1176,7 +1176,8 @@ class Future : private futures::detail::FutureBase<T> { ...@@ -1176,7 +1176,8 @@ class Future : private futures::detail::FutureBase<T> {
} }
template <typename F, typename R = futures::detail::callableResult<T, F>> template <typename F, typename R = futures::detail::callableResult<T, F>>
[[deprecated("use thenValue(auto&&) or thenValue(folly::Unit) instead")]] [[deprecated(
"ERROR: use thenValue with auto&& or folly::Unit parameter instead")]]
typename std::enable_if<is_invocable<F>::value, typename R::Return>::type typename std::enable_if<is_invocable<F>::value, typename R::Return>::type
then(F&& func) && = delete; then(F&& func) && = delete;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment