Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - FW: The Compiling error under Momentics 6.4.0: (2 Items)
   
FW: The Compiling error under Momentics 6.4.0  
 
Hi:
   I met the weird compiling error while using 6.4.0 version.
   My C++ style source code is:
struct adl_attach_data
{
            ......
	inline adl_attach_data& adl_attach_data::operator=(const
adl_attach_data& Value)
	{
		.......
		return *this;
	}
};

    The error information is:  "error: extra qualification
'adl_attach_data::' on member 'operator=' "

    But it was passed while I use momentics v6.3.2. What's wrong with
it? How can I resolve it? thanks

Jun Yu
RE: The Compiling error under Momentics 6.4.0  
It should be:

	struct adl_attach_data
	{
            ......
		inline adl_attach_data& operator=(const adl_attach_data&
Value)
		{
			.......
			return *this;
		}
	};

You don't need to add the class qualification to operator= since it is
already within a struct
declaration.