Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Missing new keyword

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Vertexwahn Posted - Oct 01 2011 : 11:34:19 AM
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())
{

}
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Nov 18 2013 : 3:13:07 PM
case=3519 is fixed in build 2007
accord Posted - Oct 02 2011 : 1:08:20 PM
I am seeing the same effect here. Thank you for the clear description.

case=3519

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000