Feature #2047

Provide deprecated macro for static methods

Added by Anonymous over 9 years ago. Updated almost 8 years ago.

Status:RejectedStart date:10/08/2014
Priority:LowDue date:
Assignee:J. Wienke% Done:

0%

Category:Util
Target version:-

Description

Provide a DEPRECATED macro for static methods and the according test. The current deprecated macros does not seem to work with static methods. I tried:

DEPRECATED_MSG(FooPtr Foo::bar(int baz), "deprecation");
FooPtr Foo::bar(int baz) {
}

resulting in

error: declaration of ‘static FooPtr Foo::bar(int)’ outside of class is not definition

as well as

DEPRECATED(FooPtr Foo::bar(int baz)) {
}

resulting in

error: attributes are not allowed on a function-definition

History

#1 Updated by J. Wienke over 9 years ago

You need to use this in the header, probably. Did you try that?

#2 Updated by J. Wienke over 9 years ago

ping ;)

#3 Updated by Anonymous over 9 years ago

I'm not sure, I have to test this.

#4 Updated by J. Wienke almost 8 years ago

  • Status changed from New to Rejected

I suspect this works until a counter example.

Also available in: Atom PDF