Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 problem with 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
ggggle Posted - Nov 13 2019 : 03:48:58 AM

#pragma once
#include <functional>

template <typename T>
class Demo
{
public:
    typedef Demo<T> type;
    std::function<void()> func() {
        return std::bind(&type::cb, this);
    }
    void cb() {
    }
    Demo() {}
    ~Demo() {}
};

can not find references by "void cb()" function
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 13 2019 : 09:14:31 AM
I am seeing the same effect here. Thank you for the clear description.

case=141491

Can you please try changing the line:

typedef Demo<T> type;

into:

#define type Demo<T>;

this fixes the problem for me, in my tests here. If changing the code is not an option then adding the #define version of the line to a va_stdafx.h file also fixes the problem, as explained here:

https://docs.wholetomato.com/default.asp?W302

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