diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-17 01:39:37 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-17 01:39:37 +0000 |
commit | aeb2827a22747aab57321d64cf75e5848ee216a4 (patch) | |
tree | 4c39b7bcf27979fd59ab100f7396f8459bc9a200 | |
parent | Improve logic for determining bjam build variant (assumes gcc toolset, which ... (diff) | |
download | libadhocutil-aeb2827a22747aab57321d64cf75e5848ee216a4.tar.bz2 libadhocutil-aeb2827a22747aab57321d64cf75e5848ee216a4.tar.xz libadhocutil-aeb2827a22747aab57321d64cf75e5848ee216a4.zip |
Add explicit destructor, works around gcc derp with visibility hidden and ltolibadhocutil-0.3.1
-rw-r--r-- | libadhocutil/curlStream.cpp | 4 | ||||
-rw-r--r-- | libadhocutil/curlStream.h | 1 |
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); |