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
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
