[PATCH] D157240: [NFC][xray] Fix enable_if usage in XRay.h

Kazu Hirata via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 12:37:16 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8a15bdb5e637: [NFC][xray] Fix enable_if usage in XRay.h (authored by ccotter, committed by kazu).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157240/new/

https://reviews.llvm.org/D157240

Files:
  llvm/include/llvm/XRay/Graph.h


Index: llvm/include/llvm/XRay/Graph.h
===================================================================
--- llvm/include/llvm/XRay/Graph.h
+++ llvm/include/llvm/XRay/Graph.h
@@ -144,7 +144,7 @@
 
   public:
     template <bool IsConstDest,
-              typename = std::enable_if<IsConstDest && !IsConst>>
+              typename = std::enable_if_t<IsConstDest && !IsConst>>
     operator NeighborEdgeIteratorT<IsConstDest, IsOut, BaseIt,
                                    const EdgeValueType>() const {
       return NeighborEdgeIteratorT<IsConstDest, IsOut, BaseIt,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157240.549141.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230810/5babac1a/attachment.bin>


More information about the llvm-commits mailing list