From b296b1fc43bbb115d9e826d02a7aca09e713b422 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 26 Nov 2016 01:33:50 +0300 Subject: Add support for VC15 --- build2/function | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build2/function') diff --git a/build2/function b/build2/function index 192c4a3..6397720 100644 --- a/build2/function +++ b/build2/function @@ -116,10 +116,10 @@ namespace build2 D d) : function_overload (an, mi, ma, move (ts), im) { - // std::is_pod appears to be broken in VC14 and also in GCC up to + // std::is_pod appears to be broken in VC15 and also in GCC up to // 5 (pointers to members). // -#if !((defined(_MSC_VER) && _MSC_VER <= 1900) || \ +#if !((defined(_MSC_VER) && _MSC_VER <= 1910) || \ (defined(__GNUC__) && !defined(__clang__) && __GNUC__ <= 5)) static_assert (std::is_pod::value, "type is not POD"); #endif @@ -327,10 +327,10 @@ namespace build2 static const size_t max = sizeof...(A); static const size_t min = max - function_args_opt::count; - // VC14 doesn't realize that a pointer to static object (in our case it is + // VC15 doesn't realize that a pointer to static object (in our case it is // &value_trair::value_type) is constexpr. // -#if !defined(_MSC_VER) || _MSC_VER > 1900 +#if !defined(_MSC_VER) || _MSC_VER > 1910 static constexpr const optional types[max] = { function_arg::type ()...}; #else @@ -339,7 +339,7 @@ namespace build2 }; template -#if !defined(_MSC_VER) || _MSC_VER > 1900 +#if !defined(_MSC_VER) || _MSC_VER > 1910 constexpr const optional function_args::types[function_args::max]; #else @@ -356,7 +356,7 @@ namespace build2 static const size_t max = 0; static const size_t min = 0; -#if !defined(_MSC_VER) || _MSC_VER > 1900 +#if !defined(_MSC_VER) || _MSC_VER > 1910 static constexpr const optional* types = nullptr; #else static const optional* const types; -- cgit v1.1