- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i met a probelm about compulsory type translation error about "pointer of class function member " in Nios2 IDE.
firstly i defined : class InterruptClass { public: virtual ~InterruptClass() {}; }; class Interrupt { public: typedef void (InterruptClass::*Callback)(int); Interrupt(int vector); ~Interrupt() {}; void Initialize(); void SetCallback(InterruptClass *iclass, Callback handler, int arg= 0); private: ................. } then i invoke SetCallback : Interrupt timerIntr...; timerIntr.SetCallback(this, (Interrupt::Callback)Timer::InterruptHandler); Nios2 IDE info me a error that the type translation can not be executed. i tried to compile the code in VC++ and VisualDSP++, it is ok. So i wonder whether the IDE support this conversion. is there any approach to solve this problem?Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No one knows?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page