File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ target_sources(tv PUBLIC
179
179
source /tv/indexed_value.cpp
180
180
source /tv/insert .cpp
181
181
source /tv/is_valid_index.cpp
182
+ source /tv/none.cpp
182
183
source /tv/nth_type.cpp
183
184
source /tv/optional .cpp
184
185
source /tv/overload.cpp
Original file line number Diff line number Diff line change
1
+ // Copyright David Stone 2023.
2
+ // Distributed under the Boost Software License, Version 1.0.
3
+ // (See accompanying file LICENSE_1_0.txt or copy at
4
+ // http://www.boost.org/LICENSE_1_0.txt)
5
+
6
+ export module tv.none;
7
+
8
+ namespace tv {
9
+
10
+ // none_t cannot be default constructible or we get an ambiguity in op = {};
11
+ export struct none_t {
12
+ constexpr explicit none_t (int ) {}
13
+ };
14
+ export constexpr auto none = none_t (0 );
15
+
16
+ } // namespace tv
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ module;
16
16
export module tv.optional;
17
17
18
18
import tv.insert;
19
+ import tv.none;
19
20
import tv.variant;
20
21
21
22
import bounded;
@@ -27,12 +28,6 @@ using namespace bounded::literal;
27
28
28
29
namespace tv {
29
30
30
- // none_t cannot be default constructible or we get an ambiguity in op = {};
31
- export struct none_t {
32
- constexpr explicit none_t (int ) {}
33
- };
34
- export constexpr auto none = none_t (0 );
35
-
36
31
template <typename T>
37
32
struct optional_storage {
38
33
constexpr optional_storage ():
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export module tv;
7
7
8
8
export import tv.indexed_value;
9
9
export import tv.insert;
10
+ export import tv.none;
10
11
export import tv.optional;
11
12
export import tv.overload;
12
13
export import tv.single_element_storage;
You can’t perform that action at this time.
0 commit comments