Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
is_constructible2.C
blob: 8f25e7e27d26a836a9895b77ff49d40a392cbe66 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
#include
<type_traits>
template
<
typename
T
>
struct
x
{
operator
bool
()
{
static_assert
(!
std
::
is_same
<
T
,
T
>::
value
,
""
);
return
false
;
}
};
static
constexpr
auto
a
=
__is_constructible
(
bool
,
x
<int>
);