undoing /Wall hacks for MSVC, adding best_match

This commit is contained in:
badair
2016-03-26 01:38:08 -05:00
parent e3f6f40ef0
commit 959dcca860
22 changed files with 327 additions and 170 deletions

View File

@@ -6,9 +6,6 @@ Distributed under the Boost Software License, Version 1.0.
*/
//useless MSVC /Wall warnings
#pragma warning(disable: 4514 4711)
#include <cassert>
#include <type_traits>
#include <functional>
@@ -76,6 +73,9 @@ int main() {
_1
);
// the last _1 placeholder in this bind expression forces all other
// _1 slots to accept VampireRobotPoodle, the narrowest of the bunch.
using bind_args = ct::args<bind_expr>;
using expected_args = std::tuple<VampireRobotPoodle, Poodle, Vampire>;
static_assert(std::is_same<bind_args, expected_args>{}, "");