Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create Declaration fail on constructor

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
jwiesemann Posted - Sep 26 2007 : 09:30:23 AM
Hi,

when I use "Create Declaration" on a constructor with an initializer list, this list is copied to the declaration. This is invalid c++.

Source:

MMGServer::MMGServer(wxString IPaddress, int Port, wxTextCtrl *textCtrl) :
m_addr(),
m_server(NULL),
m_text(textCtrl),
m_numClients(-1) // Server not active
{
}

results in:
MMGServer(wxString IPaddress, int Port, wxTextCtrl *textCtrl) : m_addr(), m_server(NULL), m_text(textCtrl), m_numClients(-1) /* Server not active */;

Joachim
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Sep 10 2009 : 3:14:15 PM
case=1738 is fixed in build 1734
feline Posted - Sep 26 2007 : 10:26:49 AM
I am seeing the same effect here. Thank you for the clear description.

case=1738

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