diff options
Diffstat (limited to 'build2/function.cxx')
-rw-r--r-- | build2/function.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build2/function.cxx b/build2/function.cxx index ec70529..2f2db51 100644 --- a/build2/function.cxx +++ b/build2/function.cxx @@ -257,7 +257,11 @@ namespace build2 throw failed (); } +#if !defined(_MSC_VER) || _MSC_VER > 1900 + constexpr const optional<const value_type*>* function_args<>::types; +#else const optional<const value_type*>* const function_args<>::types = nullptr; +#endif void function_family::entry:: insert (string n, function_overload f) const |