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
 std::tr1::shared_ptr Find References fails VS2015
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pertheli
New Member

5 Posts

Posted - Jun 07 2016 :  10:45:33 PM  Show Profile  Reply with Quote
I recently upgraded a project from VS2008 to VS2015.
It seems that Find References fails in VS2015 for std::tr1::shared_ptr while it was ok in VS2008.
It seems to work however for std::shared_ptr.

Tried http://docs.wholetomato.com/?W363 but no success.
Is there any solution without changing std::tr1::shared_ptr to std::shared_ptr?

Environment:
VA_X.dll file version 10.9.2102.0 built 2016.06.02
DevEnv.exe version 14.0.25123.0 Professional
msenv.dll version 14.0.25123.0
Comctl32.dll version 6.10.7601.18837
Windows 7 6.1 Build 7601 Service Pack 1


Sample code below:

#include <memory>
class TestA
{
public:
  TestA(){}
  void FooInA(){}   // Execute "Find References" should find in TestB::CallerInB()
};

class TestB
{
public:
  TestB(){}

  void CallerInB()
  {
    m_pA->FooInA();
  }

  std::tr1::shared_ptr<TestA> m_pA;  //<-- fails in VS2015/ succeeds in VS2008
  //std::shared_ptr<TestA> m_pA;  //<-- succeeds in VS2015
  
};

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jun 09 2016 :  6:39:59 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=61468

Unfortunately in this case the macro setting won't help with this problem. Currently our parser is confused by how the library is handling the tr1::shared_ptr in VS2015.

Do you have a lot of effected code? Or just a small amount?

zen is the art of being at one with the two'ness
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