Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Changing signature of function fails for template

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
xMRi Posted - Jun 17 2016 : 02:32:28 AM
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.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 17 2016 : 12:21:32 PM
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.

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