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
 Changing signature of function fails for template
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jun 17 2016 :  02:32:28 AM  Show Profile  Reply with Quote
I am using Build 2102.
I was able to repro it in a minimized sample (the real code template has about 2500 lines:

This is the code

namespace TestDB
{

template <class TRecord>
class CClassTemplate : public TRecord
{
public:
  CClassTemplate();
  ~CClassTemplate();

  bool Foo();
};

template <class TRecord>
bool CClassTemplate<TRecord>::Foo()
{
  return True;
}

}


Now I select the function and try to change the signature to:

bool Foo(bool bTest);

The box shows correctly 2 referenced to change.
I press OK and I retrieve the message:

---------------------------
Visual Assist
---------------------------
Visual Assist failed to modify one or more files. The refactoring may not have completed successfully.
Inspect your files to see if any changes need to be rolled back.

Common causes for this error are read-only files and related source control problems.
---------------------------
OK
---------------------------

The declaration ins the class is changed. The definition not.
It doesn't matter if you try to select the definition or if you try to change the declaration for the change.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jun 17 2016 :  12:21:32 PM  Show Profile  Reply with Quote
I am seeing the same thing here, thank you for such a clear, and small sample. Shrinking this down from 2500 lines of code must have taken a little while!

case=98113

This is the same error message, and final result, as I am seeing here:

http://forums.wholetomato.com/forum/topic.asp?TOPIC_ID=12672

but with a different set of code, and I can reproduce with your code, but not that code. No idea if they are really related or not, but they look similar enough to have caught my eye.

zen is the art of being at one with the two'ness
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