There seems to be a problem with "Find References" when using a #define and std::tr1::shared_ptr.
#include <memory>
#define MySharedPtr std::tr1::shared_ptr
class Foo_Impl
{
public:
Foo_Impl() : value(1) {}
int value;
};
class Foo
{
public:
Foo() {}
// std::tr1::shared_ptr<Foo_Impl> impl;
MySharedPtr<Foo_Impl> impl;
void set_value(int v)
{
impl->value = v;
}
};
int _tmain(int argc, _TCHAR* argv[])
{
Foo foo;
foo.set_value(2);
return 0;
}
Doing a "Find References" on "value" in "impl->value" results in a unrecognized symbol message popping up. When just using std::tr1::shared_ptr it works fine.
Visual Studio 2008 SP1 and VA 10.6. 1862.0