M
mosfet
class CSyncClient
{
public:
CSyncClient(void);
virtual ~CSyncClient(void);
//DECLARE_PROPERTY(Login, char*);
friend class Login_;
template<class TYPE>
struct Login_ : public BaseProperty<TYPE>
{
virtual void putprop(TYPE p_Value)
{
CSyncClient::m_pSyncClientSession->SetLogin(p_Value);
}
};
struct Login_<char*> Login;
protected:
CSyncClientSession* m_pSyncClientSession;
};
I get :
left of '->SetLogin' must point to class/struct/union/generic type
1> c:\htc\ui\replication\SyncClient.h(109) : while compiling
class template member function 'void
CSyncClient::Login_<TYPE>:utprop(TYPE)'
1> with
1> [
1> TYPE=char *
1> ]
1> c:\htc\ui\replication\SyncClient.h(114) : see reference to
class template instantiation 'CSyncClient::Login_<TYPE>' being compiled
1> with
1> [
1> TYPE=char *
1> ]
{
public:
CSyncClient(void);
virtual ~CSyncClient(void);
//DECLARE_PROPERTY(Login, char*);
friend class Login_;
template<class TYPE>
struct Login_ : public BaseProperty<TYPE>
{
virtual void putprop(TYPE p_Value)
{
CSyncClient::m_pSyncClientSession->SetLogin(p_Value);
}
};
struct Login_<char*> Login;
protected:
CSyncClientSession* m_pSyncClientSession;
};
I get :
left of '->SetLogin' must point to class/struct/union/generic type
1> c:\htc\ui\replication\SyncClient.h(109) : while compiling
class template member function 'void
CSyncClient::Login_<TYPE>:utprop(TYPE)'
1> with
1> [
1> TYPE=char *
1> ]
1> c:\htc\ui\replication\SyncClient.h(114) : see reference to
class template instantiation 'CSyncClient::Login_<TYPE>' being compiled
1> with
1> [
1> TYPE=char *
1> ]