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
 std::exception does not have string constructor
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Boris2
New Member

2 Posts

Posted - Mar 11 2013 :  05:12:17 AM  Show Profile  Reply with Quote
Visual Assist generates code like this:

throw std::exception("The method or operation is not implemented.");

According to C++ standard, std::exception does not have relevant constructor. I know I can change this myself in Visual Assist settings, but would be nice if you changed the default to something like this:

throw std::logic_error("The method or operation is not implemented.");

Some of us are actually writing cross platform code

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 11 2013 :  7:02:59 PM  Show Profile  Reply with Quote
A good point, thank you for this, I have put in a request to change the default value:

case=72946

For now, you can simply edit the VA Snippet "Refactor Create From Usage Method Body" for C++, and the change will take effect straight away

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

Boris2
New Member

2 Posts

Posted - Mar 13 2013 :  09:32:35 AM  Show Profile  Reply with Quote
Thanks.

What "case=72946" refers to?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 13 2013 :  4:11:36 PM  Show Profile  Reply with Quote
case=72946 is the case number in our internal bug tracker. This thread should be updated when this is done, and case numbers are also referenced on the history of changes page:

http://www.wholetomato.com/support/history.asp

I hope this helps.

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

support
Whole Tomato Software

5566 Posts

Posted - Jun 03 2013 :  1:55:39 PM  Show Profile  Reply with Quote
case=72946 is implemented in build 1940

New installs will have updated snippet. For existing installs, delete the "Refactor Create From Usage Method Body" snippet and it will be recreated with the updated code.
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