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
 Create Declaration fail on constructor
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jwiesemann
Junior Member

14 Posts

Posted - Sep 26 2007 :  09:30:23 AM  Show Profile  Reply with Quote
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

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Sep 26 2007 :  10:26:49 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=1738

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 10 2009 :  3:14:15 PM  Show Profile  Reply with Quote
case=1738 is fixed in build 1734
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