Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 "Refactor Create From Usage Method Body" Error

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
ngg Posted - Apr 03 2013 : 04:32:56 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jun 03 2013 : 1:54:57 PM
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.
feline Posted - Apr 03 2013 : 08:29:52 AM
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.

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