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();
}