[cfe-commits] [Patch][Review][libc++] constexpr-ification	of	<utility>
    Howard Hinnant 
    hhinnant at apple.com
       
    Tue Apr  3 14:10:14 PDT 2012
    
    
  
On Apr 3, 2012, at 2:09 PM, Jonathan Sauer wrote:
> Hello,
> 
> attached is a patch that constexpr-ifies libc++'s <utility> header, at least as far as FDIS
> and N3337 specify (unfortunately, the latter does not seem to make additional functions constexpr).
> I tried to be backwards-compatible with C++03, but the tests fail in unrelated places due to
> failing static_assert's.
> 
> Please review and, if ok, commit :-)
> 
> As mentioned above, there are in my opinion at least some functions in <utility> that could/
> should be made constexpr to increase their versatility, such as std::forward. But as LWG2013
> is as of yet undecided, I'm hesitant to constexpr-ify any additional methods. Still, std::forward
> is soooo tempting ...
> 
> 
> Jonathan
> <utility.diff>
Thanks, Committed revision 153968.
Howard
    
    
More information about the cfe-commits
mailing list