Handle less_than_impl and greater_than_impl under MSVC
authorOrvid King <blah38621@gmail.com>
Tue, 13 Oct 2015 22:26:52 +0000 (15:26 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Tue, 13 Oct 2015 23:20:18 +0000 (16:20 -0700)
commitedf5c731fde69e4d509065cc6b236e973ef29c38
tree0bf08e9390637a76337b0097536dc7b3896bc637
parent55f34d09f58adb31ff758883a6ce2c867f48584f
Handle less_than_impl and greater_than_impl under MSVC

Summary: MSVC chokes on the template constraints of these functions, so use a single implementation that will be const-folded by the optimizer instead.
Closes https://github.com/facebook/folly/pull/281

Reviewed By: @yfeldblum

Differential Revision: D2419069

fb-gh-sync-id: c9ad3d135430f8265bbc90391b45d9295d6de362
folly/Traits.h