<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 7, 2016, at 5:46 PM, Piotr Padlewski <<a href="mailto:piotr.padlewski@gmail.com" class="">piotr.padlewski@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-09-07 17:40 GMT-07:00 Mehdi Amini via llvm-dev <span dir="ltr" class=""><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br class="">
> On Sep 7, 2016, at 4:50 PM, Joerg Sonnenberger via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class="">
><br class="">
> On Wed, Sep 07, 2016 at 04:30:01PM -0700, Eugene Zelenko via llvm-dev wrote:<br class="">
>> What should be used for type declarations: typedef or using? typedef<br class="">
>> is there because of historical reasons, but LLVM code based is C++11<br class="">
>> now.<br class="">
>><br class="">
>> LLVM Coding Standards are not clear on this matter.<br class="">
><br class="">
> Can you give some context for the situation you wonder about? They are<br class="">
> both valid in some situation.<br class="">
<br class="">
</span>Are there cases were typedef is (technically) preferable (or needed) compared to using?<br class="">
<br class=""></blockquote><div class="">You cant write </div></div></div></div></div></blockquote><div><br class=""></div><div>The question is the opposite: what are the cases where *typedef* is preferable to using?</div><div>(I don’t know any, that’s why I ask.)</div><div><br class=""></div><div>— </div><div>Mehdi</div><div><br class=""></div></div></body></html>