Need to trick it more.
From-SVN: r28676
This commit is contained in:
parent
eebd152bca
commit
b6062b273f
1 changed files with 2 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
// Templates defined outside must be declared inside
|
||||
namespace bar
|
||||
{
|
||||
template<class T>
|
||||
void foo(); // trick it to provide some prior declaration
|
||||
template<class T>class X;
|
||||
}
|
||||
|
@ -13,9 +14,8 @@ bar::foo(T const &a)
|
|||
return a;
|
||||
}
|
||||
|
||||
template<> const int bar::foo<int>(int const &)
|
||||
template<> void bar::foo<int>()
|
||||
{ // ERROR - not declared in bar - XFAIL *-*-*
|
||||
return 0;
|
||||
}
|
||||
|
||||
template<class T,class U>
|
||||
|
|
Loading…
Add table
Reference in a new issue