Commit 24ddcf79 authored by Dominik Charousset's avatar Dominik Charousset

Remove overly strict static assert

parent 573fb813
......@@ -157,8 +157,11 @@ public:
/// @warning Call only from the reader (owner).
void close() noexcept {
deleter_type d;
static_assert(noexcept(d(std::declval<pointer>())),
"deleter is not noexcept");
// We assume the node destructor to never throw. However, the following
// static assert fails. Unfortunately, std::default_delete's apply operator
// is not noexcept (event for types that have a noexcept destructor).
// static_assert(noexcept(d(std::declval<pointer>())),
// "deleter is not noexcept");
close(d);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment