From be972baaa3f14862750f32e2eaa4f890e74277b2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 22 Sep 2018 19:33:04 +0300 Subject: [PATCH] Add a constructor to http_category_impl to placate clang++-3.8 and below --- test/failed_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/failed_test.cpp b/test/failed_test.cpp index 67a317d..118d35f 100644 --- a/test/failed_test.cpp +++ b/test/failed_test.cpp @@ -13,6 +13,12 @@ using namespace boost::system; struct http_category_impl: public error_category { + // clang++ 3.8 and below: initialization of const object + // requires a user-provided default constructor + BOOST_SYSTEM_CONSTEXPR http_category_impl() BOOST_NOEXCEPT + { + } + char const * name() const BOOST_NOEXCEPT { return "http";