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
 "Refactor Create From Usage Method Body" Error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ngg
Starting Member

1 Posts

Posted - Apr 03 2013 :  04:32:56 AM  Show Profile  Reply with Quote
The "Refactor Create From Usage Method Body" snippet is wrong according to the c++11 standard.

std::exception cannot be constructed from a string, only visual c++ supports this, it fails with every other compiler.

You should use std::runtime_error instead of std::exception, so the corrected snippet looks like this:

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

NGG

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Apr 03 2013 :  08:29:52 AM  Show Profile  Reply with Quote
Thank you for this, we are looking to fix this:

case=72946

For now you can simply edit the VA snippet on your system to fix this problem.

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:54:57 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