Skip to content

Commit dc242cc

Browse files
mochaaPcopybara-github
authored andcommitted
PR #1931: raw_hash_set: fix instantiation for recursive types on MSVC with /Zc:__cplusplus
Imported from GitHub PR #1931 COPYBARA_INTEGRATE_REVIEW=#1931 from mcha-forks:master a0bb0f4 PiperOrigin-RevId: 805038173 Change-Id: Ic32a0245f48abeba3271d2f85c31915a5236864c
1 parent 0739328 commit dc242cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

absl/container/internal/raw_hash_set.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,13 +2390,13 @@ class raw_hash_set {
23902390
// s.insert({"abc", 42});
23912391
std::pair<iterator, bool> insert(init_type&& value)
23922392
ABSL_ATTRIBUTE_LIFETIME_BOUND
2393-
#if __cplusplus >= 202002L
2393+
#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 202002L
23942394
requires(!IsLifetimeBoundAssignmentFrom<init_type>::value)
23952395
#endif
23962396
{
23972397
return emplace(std::move(value));
23982398
}
2399-
#if __cplusplus >= 202002L
2399+
#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 202002L
24002400
std::pair<iterator, bool> insert(
24012401
init_type&& value ABSL_INTERNAL_ATTRIBUTE_CAPTURED_BY(this))
24022402
ABSL_ATTRIBUTE_LIFETIME_BOUND

0 commit comments

Comments
 (0)