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
 Using declaration breaks find references
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

johnny5
New Member

4 Posts

Posted - Mar 23 2011 :  10:52:39 PM  Show Profile  Reply with Quote
IDE: Visual Studio 2010
VAX: 10.6.1845.0

Here are two examples to reproduce the problem:

Example 1:
If you try to find references for Foo::DoSomething() it will find the reference that explicitly scoped tr1 but not the other one.

#include <memory>

struct Foo
{
  void DoSomething()
  { }
};

void Bar()
{
  std::shared_ptr<Foo> sp_f;
  std::tr1::shared_ptr<Foo> sp_tr1_f;

  // This is found.
  sp_tr1_f->DoSomething();

  // Does not find.
  sp_f->DoSomething();  
}

Example 2:


namespace X
{
  void DoNothing()
  {  }
}

namespace Y
{
  using X::DoNothing;
}

int main()
{
  X::DoNothing();
  // If you find references on the one below it does not find any of the others.
  // If you find references on any of the others it does not find the one below.
  Y::DoNothing();
}

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Mar 24 2011 :  10:14:40 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description. I think these might be two different effects. I have put in:

case=56278

For the VS2010 std::shared_ptr problem. In this case you cannot actually trigger Find References on the problem function call, which is a bit more serious than it simply not being found.

Your second example, I think this is covered by:

case=8809

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

support
Whole Tomato Software

5566 Posts

Posted - May 12 2011 :  12:41:49 AM  Show Profile  Reply with Quote
case=8809 and case=56278 are fixed in build 1848

Whole Tomato Software, Inc.
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