Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Different behavior in constructor definition

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
arp Posted - Sep 06 2010 : 02:55:18 AM
Hi,
I have the following problem. When I write the constructor definition with exception specification (throw()), then are red underline the base class (TestBase) and the variable (m_visible) and no intellisense worked in this context. When I remove the exception specification then is all correct.

TestClass.h

class TestClass
  : public TestBase
{
  public:
    explicit TestClass() throw();
  protected:
    bool m_visible;
}

TestClass.cpp

void TestClass::TestClass() throw()
  : TestBase()
  , m_visible(false)
{
}
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Sep 06 2010 : 3:11:34 PM
I am seeing the same effect here. Thank you for the clear description.

case=1867

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