repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
vt-59361.C
blob
519ae35dda9526e7a512a8347e3eeb9c65dec9a4
1
// PR c++/59361
2
// { dg-do compile { target c++11 } }
3
4
template<bool ...Bs>
5
struct and_
6
{
7
constexpr static bool value{true};
8
};
9
10
template<typename T>
11
struct true_
12
{
13
constexpr operator bool() const { return true; }
14
};
15
16
template<typename ...Ts>
17
constexpr bool foo(Ts...)
18
{
19
return and_<(true_<Ts>())...>::value;
20
}