We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61b2464 commit 86fb84dCopy full SHA for 86fb84d
include/beman/cstring_view/cstring_view.hpp
@@ -110,7 +110,7 @@ class basic_cstring_view {
110
111
// [cstring.view.cons], construction and assignment
112
constexpr basic_cstring_view() noexcept : size_() {
113
- static const charT empty_string[1]{};
+ // XXX static const charT empty_string[1]{};
114
data_ = std::data(empty_string);
115
}
116
constexpr basic_cstring_view(const basic_cstring_view&) noexcept = default;
@@ -313,6 +313,8 @@ class basic_cstring_view {
313
private:
314
const_pointer data_; // exposition only
315
size_type size_; // exposition only
316
+
317
+ static constexpr charT empty_string[1]{}; // NOLINT
318
};
319
320
inline namespace literals {
0 commit comments