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
 Feature Requests
 Missing new keyword
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Vertexwahn
Senior Member

35 Posts

Posted - Oct 01 2011 :  11:34:19 AM  Show Profile  Reply with Quote
If I use the "Move Implementation to Source File" feature on the file constructor here:


namespace test
{
	namespace io
	{
		//! \\class File
		//! \\brief brief description
		class File
		{
		public:
			//! Default constructor.
			File(const Path& filename) :
				m_Impl(new FileImpl())
			{
			}

			//! Virtual destructor.
			virtual ~File()
			{
			}

		private:
			class FileImpl;		// Forward declaration of internal class
			FileImpl*;	// Opaque pointer to implementation
		}; // end class File
	} // end namespace io
} // end namespace test


it looks like this:

test::io::File::File( const Path& filename ) :
m_Impl( FileImpl())
{

}


the new keyword is missing - it should look like this:

test::io::File::File( const Path& filename ) :
m_Impl(new FileImpl())
{

}

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 02 2011 :  1:08:20 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=3519
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 18 2013 :  3:13:07 PM  Show Profile  Reply with Quote
case=3519 is fixed in build 2007
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000