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
 problem with Find References
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ggggle
Starting Member

1 Posts

Posted - Nov 13 2019 :  03:48:58 AM  Show Profile  Reply with Quote

#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

Edited by - ggggle on Nov 13 2019 04:09:27 AM

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Nov 13 2019 :  09:14:31 AM  Show Profile  Reply with Quote
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

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