Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BUG:: Report template on member function

807575Apr 11 2003 — edited May 13 2003
Assertion fails in the compiler:

struct F {
void f(void){}
void g(void){}
};

typedef void (F::*VFV)(void);

struct FMemFun {
VFV memfun;
FMemFun( VFV _ ) : memfun( _ ) {}
void call( F * _ ){ (_->*memfun)(); }
};

template< VFV f >
struct A {
VFV data;
A(void) : data( f ) {}
};


int main( int argc, char * argv[] ){
A<&F::f> a3;
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2003
Added on Apr 11 2003
1 comment
222 views