Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-this2.C
blob: d27ed713fff173762f1a996c56f5afd176aa6bf3 [
file
] [
log
] [
blame
]
// PR c++/85764
// { dg-do compile { target c++14 } }
template
<
typename
Key
>
class
trie
{
static
void
for_each
(
int
&
f
,
trie
const
&
n
,
Key
&
prefix
)
{
[&](
trie
const
&
c
)
{
for_each
(
f
,
c
,
prefix
);
};
}
void
for_each
(
int
&
f
)
const
{
}
};