[PATCH] D22997: [cxx1z-constexpr-lambda] Make conversion function constexpr, and teach the expression-evaluator to evaluate the static-invoker.

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 14 13:01:04 PST 2016


ahatanak added inline comments.


================
Comment at: lib/AST/ExprConstant.cpp:4427
+        const CXXRecordDecl *ClosureClass = MD->getParent();
+        assert((std::distance(ClosureClass->captures_begin(),
+                              ClosureClass->captures_end()) == 0) &&
----------------
Can you just compare iterators here?

```
ClosureClass->captures_begin() == ClosureClass->captures_end()
```



https://reviews.llvm.org/D22997





More information about the cfe-commits mailing list