Skip to content

Commit 9200ade

Browse files
authored
[libc++] Narrow the exports for common_type (#111681)
Based on a comment in #99473, it seems like `export *` may be overkill.
1 parent e82fcda commit 9200ade

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/include/module.modulemap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ module std_core [system] {
7373
module common_reference { header "__type_traits/common_reference.h" }
7474
module common_type {
7575
header "__type_traits/common_type.h"
76-
// We need to export everything from this module because common_type inherits from __builtin_common_type,
77-
// which needs to be re-exported.
78-
export *
76+
// We need to export those because common_type inherits from either of those based on __builtin_common_type.
77+
export std_core.type_traits.type_identity
78+
export std_core.utility_core.empty
7979
}
8080
module conditional { header "__type_traits/conditional.h" }
8181
module conjunction { header "__type_traits/conjunction.h" }

0 commit comments

Comments
 (0)