Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Fails to deduce type when using 'using' keyword
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Junior Member

16 Posts

Posted - Mar 13 2015 :  05:45:03 AM  Show Profile  Reply with Quote

Given this code:

struct C
  enum class D { D1, D2 };
  D d;

template <class T1, class T2>
struct B
  T1 t1;

using A = B<C, int>;

void func()
  C c;
  if (c.d == C::D::D1) {}

  A a;
  if (a.t1.d == C::D::D1) {}

Visual Assist X is able to deduce the type of c.d. Ctrl+Click on d shows me a popup with the definition and type of symbol. And if I start typing
if (c.d ==
I get a suggestion list with the enum values.

However this fails for the second example (a.t1.d). Is this a known issue?

Whole Tomato Software

United Kingdom
3279 Posts

Posted - Mar 13 2015 :  2:01:18 PM  Show Profile  Reply with Quote
I am seeing the same effect here. I have put in a bug report for this:

Go to Top of Page

Whole Tomato Software

2817 Posts

Posted - May 10 2016 :  3:49:27 PM  Show Profile  Reply with Quote
case=88462 is fixed in build 2097
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000