Skip to content

Commit

Permalink
Removed conjunction, lambda_compatible, and type_map which depe…
Browse files Browse the repository at this point in the history
…nded on the full form or needed clang Since they are not used I will just remove them.

This is part of a portability effort for supporting C++20 using gcc.

#42

Tested: Compiled on Ubuntu and Mac platforms with C++20 using clang and gcc on a downstream CL.
PiperOrigin-RevId: 713484507
  • Loading branch information
jwhpryor authored and copybara-github committed Jan 9, 2025
1 parent ff297fb commit 87c7148
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 553 deletions.
111 changes: 11 additions & 100 deletions metaprogramming/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -230,29 +230,6 @@ cc_test(
],
)

################################################################################
# Conjunction.
################################################################################
cc_library(
name = "conjunction",
hdrs = ["conjunction.h"],
deps = [
":invoke",
":next",
],
)

cc_test(
name = "conjunction_test",
srcs = ["conjunction_test.cc"],
deps = [
":conjunction",
":invoke",
":next",
"@googletest//:gtest_main",
],
)

################################################################################
# Contains.
################################################################################
Expand Down Expand Up @@ -345,27 +322,8 @@ cc_test(
)

################################################################################
# Deep Equal.
# Deep Equal Diminished.
################################################################################
cc_library(
name = "deep_equal",
hdrs = ["deep_equal.h"],
deps = [
":pack_discriminator",
":vals_equal",
],
)

cc_test(
name = "deep_equal_test",
srcs = ["deep_equal_test.cc"],
deps = [
":deep_equal",
":pack_discriminator",
"@googletest//:gtest_main",
],
)

cc_library(
name = "deep_equal_diminished",
hdrs = ["deep_equal_diminished.h"],
Expand Down Expand Up @@ -654,30 +612,6 @@ cc_test(
],
)

################################################################################
# Lambda Compatible.
################################################################################
cc_library(
name = "lambda_compatible",
hdrs = ["lambda_compatible.h"],
deps = [
":deep_equal",
":tuple_manipulation",
":type_of_nth_element",
],
)

cc_test(
name = "lambda_compatible_test",
srcs = ["lambda_compatible_test.cc"],
deps = [
":deep_equal",
":lambda_compatible",
":vals",
"@googletest//:gtest_main",
],
)

################################################################################
# Lambda String.
################################################################################
Expand Down Expand Up @@ -746,30 +680,6 @@ cc_test(
],
)

################################################################################
# Type Map.
################################################################################
cc_library(
name = "type_map",
hdrs = ["type_map.h"],
deps = [
":interleave",
":lambda_string",
":tuple_from_size",
":tuple_manipulation",
":type_of_nth_element",
],
)

cc_test(
name = "type_map_test",
srcs = ["type_map_test.cc"],
deps = [
":type_map",
"@googletest//:gtest_main",
],
)

################################################################################
# Type of nth Element.
################################################################################
Expand Down Expand Up @@ -975,15 +885,16 @@ cc_library(
],
)

cc_test(
name = "queryable_map_test",
srcs = ["queryable_map_test.cc"],
deps = [
":lambda_string",
":queryable_map",
"@googletest//:gtest_main",
],
)
# Currently not running because of a bug in gcc C++20 on Github's Bazel.
#cc_test(
# name = "queryable_map_test",
# srcs = ["queryable_map_test.cc"],
# deps = [
# ":lambda_string",
# ":queryable_map",
# "//testing/base/public:gunit_main",
# ],
#)

################################################################################
# Queryable Map 20.
Expand Down
44 changes: 0 additions & 44 deletions metaprogramming/conjunction.h

This file was deleted.

80 changes: 0 additions & 80 deletions metaprogramming/conjunction_test.cc

This file was deleted.

75 changes: 0 additions & 75 deletions metaprogramming/lambda_compatible.h

This file was deleted.

Loading

0 comments on commit 87c7148

Please sign in to comment.