Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Using declaration breaks find references

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
johnny5 Posted - Mar 23 2011 : 10:52:39 PM
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();
}
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - May 12 2011 : 12:41:49 AM
case=8809 and case=56278 are fixed in build 1848
feline Posted - Mar 24 2011 : 10:14:40 PM
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

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