I tried the following with both gcc 4.1.2 and 4.6 and in both cases it
compiled without warnings. :-( How can I deprecate a template method?
====
class a
{
public:
template <typename T>
void foo(T i) __attribute__ ((deprecated));
};
template <typename T>
void a::foo(T i)
{
}
int main(int argc, const char *argv[])
{
a b;
b.foo<int>(2);
return 0;
}
=====
_______________________________________________
help-gplusplus mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-gplusplus