19 #ifndef LLVM_SUPPORT_MSVCERRORWORKAROUNDS_H 20 #define LLVM_SUPPORT_MSVCERRORWORKAROUNDS_H 60 template <
typename OtherT>
63 typename std::enable_if<std::is_convertible<OtherT, T>::value>::
type * =
67 template <
class OtherT>
70 typename std::enable_if<std::is_convertible<OtherT, T>::value>::
type * =
74 template <
class OtherT>
77 typename std::enable_if<!std::is_convertible<OtherT, T>::value>::
type * =
84 #endif // LLVM_SUPPORT_MSVCERRORWORKAROUNDS_H Error make_error(ArgTs &&... Args)
Make a Error instance representing failure using the given error info type.
This class represents lattice values for constants.
MSVCPExpected(Expected< OtherT > &&Other, typename std::enable_if<!std::is_convertible< OtherT, T >::value >::type *=nullptr)
Tagged union holding either a T or a Error.
MSVCPExpected & operator=(MSVCPExpected &&Other)
MSVCPError & operator=(MSVCPError Other)
void consumeError(Error Err)
Consume a Error without doing anything.
MSVCPExpected(OtherT &&Val, typename std::enable_if< std::is_convertible< OtherT, T >::value >::type *=nullptr)
Expected & operator=(Expected &&Other)
Move-assign from another Expected<T>.
MSVCPExpected(MSVCPExpected &&Other)
This class wraps a string in an Error.
MSVCPError(MSVCPError &&Other)
Error & operator=(const Error &Other)=delete
Lightweight error class with error context and mandatory checking.
MSVCPExpected(Expected< OtherT > &&Other, typename std::enable_if< std::is_convertible< OtherT, T >::value >::type *=nullptr)
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...