commit 94674cd55f2fb2befae4ec0778ce871dd82ad91e
parent 32da8c189b16075e7aa41a1cccc5e026b7d3bc89
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Mon, 18 Jul 2016 07:23:03 +0300
univector: detect if the parent's constructor is noexcept
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/kfr/base/univector.hpp b/include/kfr/base/univector.hpp
@@ -215,7 +215,7 @@ struct univector<T, tag_dynamic_vector> : std::vector<T, allocator<T>>,
this->resize(input.size());
this->assign_expr(std::forward<Input>(input));
}
- constexpr univector() noexcept = default;
+ constexpr univector() noexcept(noexcept(std::vector<T, allocator<T>>())) = default;
constexpr univector(const std::vector<T>& other) : std::vector<T, allocator<T>>(other) {}
constexpr univector(std::vector<T>&& other) : std::vector<T, allocator<T>>(std::move(other)) {}
constexpr univector(const array_ref<T>& other) : std::vector<T, allocator<T>>(other.begin(), other.end())