Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
d290aab6
Commit
d290aab6
authored
Feb 21, 2023
by
Rose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove workaround for gcc 5.1
We support GCC 7 and up, so we can remove this.
parent
bd624d9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
absl/container/internal/raw_hash_set.h
+2
-8
No files found.
absl/container/internal/raw_hash_set.h
View file @
d290aab6
...
@@ -1850,11 +1850,8 @@ class raw_hash_set {
...
@@ -1850,11 +1850,8 @@ class raw_hash_set {
// const char* p = "hello";
// const char* p = "hello";
// s.insert(p);
// s.insert(p);
//
//
// TODO(romanp): Once we stop supporting gcc 5.1 and below, replace
// RequiresInsertable<T> with RequiresInsertable<const T&>.
// We are hitting this bug: https://godbolt.org/g/1Vht4f.
template
<
template
<
class
T
,
RequiresInsertable
<
T
>
=
0
,
class
T
,
RequiresInsertable
<
const
T
&
>
=
0
,
typename
std
::
enable_if
<
IsDecomposable
<
const
T
&>::
value
,
int
>::
type
=
0
>
typename
std
::
enable_if
<
IsDecomposable
<
const
T
&>::
value
,
int
>::
type
=
0
>
std
::
pair
<
iterator
,
bool
>
insert
(
const
T
&
value
)
{
std
::
pair
<
iterator
,
bool
>
insert
(
const
T
&
value
)
{
return
emplace
(
value
);
return
emplace
(
value
);
...
@@ -1878,11 +1875,8 @@ class raw_hash_set {
...
@@ -1878,11 +1875,8 @@ class raw_hash_set {
return
insert
(
std
::
forward
<
T
>
(
value
)).
first
;
return
insert
(
std
::
forward
<
T
>
(
value
)).
first
;
}
}
// TODO(romanp): Once we stop supporting gcc 5.1 and below, replace
// RequiresInsertable<T> with RequiresInsertable<const T&>.
// We are hitting this bug: https://godbolt.org/g/1Vht4f.
template
<
template
<
class
T
,
RequiresInsertable
<
T
>
=
0
,
class
T
,
RequiresInsertable
<
const
T
&
>
=
0
,
typename
std
::
enable_if
<
IsDecomposable
<
const
T
&>::
value
,
int
>::
type
=
0
>
typename
std
::
enable_if
<
IsDecomposable
<
const
T
&>::
value
,
int
>::
type
=
0
>
iterator
insert
(
const_iterator
,
const
T
&
value
)
{
iterator
insert
(
const_iterator
,
const
T
&
value
)
{
return
insert
(
value
).
first
;
return
insert
(
value
).
first
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment