Commit fbb72466 by Martin v. Löwis

New test case

From-SVN: r28650
parent d82d65d8
// Build don't link:
// Templates can be defined outside of the namespace if the have been declared
// inside
namespace bar
{
template <typename T>
T const foo(T const &);
template<> const int foo<int>(int const &);
}
template <typename T>
T const
bar::foo(T const &a)
{
return a;
}
template<> const int bar::foo<int>(int const &){return 0;}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment