Support StlVectorTest for MSVC
authorChristopher Dykes <cdykes@fb.com>
Thu, 21 Jul 2016 23:16:12 +0000 (16:16 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Thu, 21 Jul 2016 23:23:36 +0000 (16:23 -0700)
commitbfe4b10913883b3d4e18dfee2007a55c4f35af76
tree4c8348edc547c29dd41d8ff6fc2e903e8e521ec8
parentcbef1e2d634b40ad2e20f7722175f290815744a6
Support StlVectorTest for MSVC

Summary:
Sure, it's big, but it compiles.

There are a few different changes to make this happen, the first is to deal with quite a few places where MSVC was complaining about the implicit coersion of template and noexcept parameters to bool.
Next, the gating that disabled this for 4.7 is now gone.
MSVC's runtime expected `difference_type` to be defined on our custom allocator, so it now is.
`ReadTSC()` was changed to use MSVC's intrinsic for this.
And finally, the named variadic parameters to macros were switched to normal variadic macro params, as MSVC doesn't support named ones.

Reviewed By: yfeldblum

Differential Revision: D3479761

fbshipit-source-id: 703a5ef942ffc9b63381d13fc3960ac6f2780aa0
folly/test/stl_tests/StlVectorTest.cpp