repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae35.C
blob
86b61032485844c26c28178b60bb7a0f66348d44
1
// PR c++/52363
2
// { dg-do compile { target c++11 } }
3
4
#include <type_traits>
5
6
struct proxy
7
{
8
void operator=(int const&);
9
void operator=(int&&) const;
10
};
11
12
static_assert( !std::is_assignable<proxy, int>::value, "" );
13
static_assert( std::is_assignable<const proxy, int>::value, "" );