From 9c7d841b37b69cde4ffb7c6d5c1aae6d5d6e1d97 Mon Sep 17 00:00:00 2001 From: vawen Date: Tue, 10 Nov 2020 14:41:53 +0100 Subject: [PATCH] Fix: #746 Compile error under VS2015 (#747) Co-authored-by: jigarcia@vaxtor.es --- httplib.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/httplib.h b/httplib.h index daeb0d2..1c0fa5c 100644 --- a/httplib.h +++ b/httplib.h @@ -2979,9 +2979,8 @@ public: bool is_valid() const { return is_valid_; } - template - bool parse(const char *buf, size_t n, const T &content_callback, - const U &header_callback) { + bool parse(const char *buf, size_t n, const ContentReceiver &content_callback, + const MultipartContentHeader &header_callback) { static const std::regex re_content_disposition( "^Content-Disposition:\\s*form-data;\\s*name=\"(.*?)\"(?:;\\s*filename="