Skip to content

Commit e6498b2

Browse files
ffontaineBillyONeal
authored andcommitted
http_compression.cpp: fix build with gcc 4.7 (#1024)
At GCC 4.7, C++11 rules for noexcept specification of implicit destructors (and default specification on explicit destructors without exception specifications) aren't perfectly implemented, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53613 Fixes: - http://autobuild.buildroot.org/results/a080dbe2977cd35e4f8351d864bd71aaa8f9b743 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
1 parent 0f766a0 commit e6498b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Release/src/http/common/http_compression.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ class brotli_decompressor : public decompress_provider
600600
class generic_compress_factory : public compress_factory
601601
{
602602
public:
603+
~generic_compress_factory() CPPREST_NOEXCEPT {}
603604
generic_compress_factory(const utility::string_t& algorithm,
604605
std::function<std::unique_ptr<compress_provider>()> make_compressor)
605606
: m_algorithm(algorithm), _make_compressor(make_compressor)
@@ -619,6 +620,7 @@ class generic_compress_factory : public compress_factory
619620
class generic_decompress_factory : public decompress_factory
620621
{
621622
public:
623+
~generic_decompress_factory() CPPREST_NOEXCEPT {}
622624
generic_decompress_factory(const utility::string_t& algorithm,
623625
uint16_t weight,
624626
std::function<std::unique_ptr<decompress_provider>()> make_decompressor)

0 commit comments

Comments
 (0)