Move the traits factories up, and remove <boost/mpl/has_xxx.hpp>
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 2 Jan 2017 06:25:37 +0000 (22:25 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 2 Jan 2017 06:33:12 +0000 (22:33 -0800)
commitca73efa8df8aa374b945efde9f35f6de85de619a
treecf3af60196c65bd8391fe043e169b14e6a24a6e8
parent7dabbf602e29b5613568d438b6a7896041d60f6a
Move the traits factories up, and remove <boost/mpl/has_xxx.hpp>

Summary:
[Folly] Move the traits factories up, and remove `<boost/mpl/has_xxx.hpp>`.

Also, they now generate aliases to the types aliased by `std::true_type` and `std::false_type`. So now the API is entirely compatible with the requirements of `std::integral_constant` (because it is `std::integral_constant`).

Reviewed By: wqfish

Differential Revision: D4375944

fbshipit-source-id: dfd41283f13d793f7fc1f173590cd93cdee39a10
folly/Traits.h
folly/test/TraitsTest.cpp