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++/37276
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
op6.C
blob
9aec9f0a8086bb49faf507c97d5956ff88ff2d88
1
// Origin: PR c++/42766
2
// { dg-do compile }
3
4
template<class T> class smart_pointer {
5
public:
6
operator T* () const { }
7
operator bool () const { }
8
operator bool () { }
9
};
10
class Context { };
11
typedef smart_pointer<Context> ContextP;
12
class SvnClient {
13
~SvnClient();
14
ContextP svnContext;
15
};
16
SvnClient::~SvnClient() {
17
delete svnContext;
18
}