[libcxx-bugs] compile-time expression in run-time evaluation

vali asdas via libcxx-bugs libcxx-bugs at lists.llvm.org
Thu Jul 18 04:34:05 PDT 2019


 If that is intended, maybe 319 should also not be constexpr, since you use the function only at 344 anyway.
    Pe joi, 18 iulie 2019, 14:27:34 EEST, vali asdas <vali.asdas at yahoo.ro> a scris:  
 
 Hey there,
Line 322 here llvm-mirror/libcxx is an if with a constant expression inside. Shouldn't it be using if constexpr? It should be a direct replacement, since if constexpr and std::variant are both from C++ 17 anyway.Thanks.

| 
| 
| 
|  |  |

 |

 |
| 
|  | 
llvm-mirror/libcxx

Mirror of official libcxx git repository located at http://llvm.org/git/libcxx. Updated every five minutes. - ll...
 |

 |

 |



  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-bugs/attachments/20190718/c7e186c1/attachment-0001.html>


More information about the libcxx-bugs mailing list