I have a class c which has instance of classes fs nad s.but will have one instance of class(either s or fs) at one time. The inline function foo returns object of s, in some cases need to return instance of fs using same function. Can any one help me how can i achive this. External class uses this finction to get information. Here only return type need to be different, depend on which class object is created at that time.
inline s foo()
Thanks and Regards,