diff --git a/include/beman/any_view/any_view.hpp b/include/beman/any_view/any_view.hpp index c02e561..8f8c7ef 100644 --- a/include/beman/any_view/any_view.hpp +++ b/include/beman/any_view/any_view.hpp @@ -49,12 +49,20 @@ class any_view : public std::ranges::view_interface any_view& + requires(not copyable) + = delete; + constexpr auto operator=(const any_view&) -> any_view& requires copyable = default; diff --git a/include/beman/any_view/any_view_options.hpp b/include/beman/any_view/any_view_options.hpp index 7287eb0..23539a4 100644 --- a/include/beman/any_view/any_view_options.hpp +++ b/include/beman/any_view/any_view_options.hpp @@ -97,13 +97,13 @@ template struct any_view_options { type_t reference_type; - type_t iterator_concept; - bool sized; - bool BEMAN_ANY_VIEW_OPTION(); - bool borrowed; - bool simple; - type_t rvalue_reference_type; - type_t difference_type; + type_t iterator_concept = {}; + bool sized = false; + bool BEMAN_ANY_VIEW_OPTION() = false; + bool borrowed = false; + bool simple = false; + type_t rvalue_reference_type = {}; + type_t difference_type = {}; }; #endif