diff --git a/include/jsoncons/json_visitor.hpp b/include/jsoncons/json_visitor.hpp index 693bd05b62..012909e56b 100644 --- a/include/jsoncons/json_visitor.hpp +++ b/include/jsoncons/json_visitor.hpp @@ -1515,6 +1515,9 @@ namespace jsoncons { } }; +#if __cplusplus >= 201703L +// not needed for C++17 +#else template constexpr C basic_json_diagnostics_visitor::visit_begin_array_name[]; template constexpr C basic_json_diagnostics_visitor::visit_end_array_name[]; template constexpr C basic_json_diagnostics_visitor::visit_begin_object_name[]; @@ -1528,6 +1531,7 @@ namespace jsoncons { template constexpr C basic_json_diagnostics_visitor::visit_int64_name[]; template constexpr C basic_json_diagnostics_visitor::visit_half_name[]; template constexpr C basic_json_diagnostics_visitor::visit_double_name[]; +#endif // C++17 check using json_visitor = basic_json_visitor; using wjson_visitor = basic_json_visitor;