summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-17 01:39:37 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-17 01:39:37 +0000
commitaeb2827a22747aab57321d64cf75e5848ee216a4 (patch)
tree4c39b7bcf27979fd59ab100f7396f8459bc9a200
parentImprove logic for determining bjam build variant (assumes gcc toolset, which ... (diff)
downloadlibadhocutil-0.3.1.tar.bz2
libadhocutil-0.3.1.tar.xz
libadhocutil-0.3.1.zip
Add explicit destructor, works around gcc derp with visibility hidden and ltolibadhocutil-0.3.1
-rw-r--r--libadhocutil/curlStream.cpp4
-rw-r--r--libadhocutil/curlStream.h1
2 files changed, 5 insertions, 0 deletions
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);