katang Posted May 26, 2017 Report Share Posted May 26, 2017 I am using the alternative style offered in book SCFTGU. In the .cpp file, I am using a normal contructor. The SC_HAS_PROCESS(MyObj); compiles OK, the SC_METHOD(MySub); ditto, but next to it sensitive << in; is refused with error message 'invalid static cast'. I guess that somehow the SC_CTOR() call is missing. What is the correct syntax? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.