|
From: | Sumit Adhikari |
Subject: | [Help-gsl] Re: Reg :: Error in declaring typedef of template class |
Date: | Wed, 11 Nov 2009 08:53:47 +0530 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4 |
A little correction : # ifndef M_SIGNAL_OUT_IF_H_ # define M_SIGNAL_OUT_IF_H_ # include "m_signal_inout_if.h"template < class T > typedef m_signal_inout_if < T > m_signal_out_if < T > ;
# endif /*M_SIGNAL_OUT_IF_H_*/ -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 On 11/11/2009 8:49 AM, Sumit Adhikari wrote:
Hello All, I have a template class like as follows : # ifndef M_SIGNAL_INOUT_IF_H_ # define M_SIGNAL_INOUT_IF_H_ # include "m_signal_in_if.h"template < class T > class m_signal_inout_if : public m_signal_in_if < T > {public : virtual void write (const T&) = 0 ; virtual void initialize(const T&) = 0; }; # endif /*M_SIGNAL_INOUT_IF_H_*/I want to declare typedef of m_signal_inout_if and I have done it as follows :# ifndef M_SIGNAL_OUT_IF_H_ # define M_SIGNAL_OUT_IF_H_ # include "m_signal_inout_if.h" template < class T > m_signal_inout_if < T > m_signal_out_if < T > ; # endif /*M_SIGNAL_OUT_IF_H_*/ But I am getting syntax error in this process. Can anybody please tell me what is the wrong with it ? Regards,
[Prev in Thread] | Current Thread | [Next in Thread] |