Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX 1219: Templates parsed incorrectly
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Erik Olofsson
Tomato Guru

111 Posts

Posted - Mar 14 2004 :  7:57:52 PM  Show Profile
Many of my templates are parsed incorrectly by VAX (Most irritating on my iterators). I know that you have it under known issues. Should I report cases where the parser fails, or have you given up? :)

Anyway here is a case that fails:


template <typename t_CClass>
class TOptions
{
public:
	typedef t_CClass CClass;

};
template <typename t_COptions, typename t_CTransform>
class TIterator
{
public:

	typename t_COptions::CClass *operator ->()
	{
		return (t_COptions::CClass *)t_CTransform::GetMega();
	}

	void CreateMess();
	void DestroyMess();
};

class CMega
{
public:
	static void *GetMega()
	{
		return 0;
	}
};

class CTheClass
{
public:
	int m_Test;
};

int main(int argc, char* argv[])
{
	TIterator<TOptions<CTheClass>, CMega> Iter;

	Iter->m_Test = 0;
	// Iter.; VA correctly shows members
	Iter-> // Here VA shows CClass instead of its members
	return 0;
}

Cutting Edge Project Management
http://www.hansoft.se
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000