From aeb2827a22747aab57321d64cf75e5848ee216a4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 17 Dec 2015 01:39:37 +0000 Subject: Add explicit destructor, works around gcc derp with visibility hidden and lto --- libadhocutil/curlStream.cpp | 4 ++++ libadhocutil/curlStream.h | 1 + 2 files changed, 5 insertions(+) diff --git a/libadhocutil/curlStream.cpp b/libadhocutil/curlStream.cpp index 9701e54..d16ff00 100644 --- a/libadhocutil/curlStream.cpp +++ b/libadhocutil/curlStream.cpp @@ -13,6 +13,10 @@ CurlStreamSource::CurlStreamSource(const std::string & url) : curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, this); } +AdHoc::Net::CurlStreamSource::~CurlStreamSource() +{ +} + std::streamsize CurlStreamSource::read(char * target, std::streamsize targetSize) { diff --git a/libadhocutil/curlStream.h b/libadhocutil/curlStream.h index da54f0f..c6b3beb 100644 --- a/libadhocutil/curlStream.h +++ b/libadhocutil/curlStream.h @@ -16,6 +16,7 @@ class DLL_PUBLIC CurlStreamSource : public boost::iostreams::source, public Curl public: /** Construct a new stream source for the given URL. */ CurlStreamSource(const std::string & url); + virtual ~CurlStreamSource(); /** Required member function for reading of the stream source by boost::iostreams::stream. */ std::streamsize read(char * target, std::streamsize targetSize); -- cgit v1.2.3