Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 std::tr1::shared_ptr Find References fails VS2015

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
pertheli Posted - Jun 07 2016 : 10:45:33 PM
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
  
};
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 09 2016 : 6:39:59 PM
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?

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