[PATCH] D34405: [Testing/Support] Remove the const_cast in TakeExpected

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 20 09:41:46 PDT 2017


zturner added a comment.

Right, but we have the `ASSERT_THAT_EXPECTED` macro, which can be re-written as `ASSERT_THAT(llvm::detail::TakeError(std::move(Err), Matcher))`


https://reviews.llvm.org/D34405





More information about the llvm-commits mailing list