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
 No member info for arithmetic_types.h (Dr.Dobbs)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tjcbs
Tomato Guru

104 Posts

Posted - Jun 25 2015 :  3:43:20 PM  Show Profile  Reply with Quote
VA doesn't display member info for any of the classes in arithmetic_types.h, a fixed point library published in Dr. Dobbs.

#include "arithmetic_types.h"

int main()
{
   fixed_decimal<> d;
   d.


VA doesn't display anything in this case.

VS 2013, VA 10.9.2068.0

The Article:
http://www.drdobbs.com/cpp/fixed-point-arithmetic-types-for-c/184401992
The File:
https://www.dropbox.com/s/95farldlxmxrcvo/arithmetic_types.h?dl=0

Edited by - tjcbs on Jun 25 2015 3:45:25 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 02 2015 :  9:02:31 PM  Show Profile  Reply with Quote
I was able to reproduce the problem and I have put in a bug report for this:

case=90657

The problem is that VA's parser is somehow got confused by the complex template struct definitions.

For now, you can create a va_stdafx.h next to your solution or project and copy-paste the problematic classes there with a simplified definition as a workaround.
For example, I simplified the below classes the following way, and it helped with your example. (don't need to modify the struct body)

template <int> struct fixed_binary : public arithmetic_operator_helper<fixed_binary>
...

template <int> struct fixed_decimal : public arithmetic_operator_helper<fixed_decimal>


Don't be concerned that the code does not make sense - it won't be compiled, just parsed by VA. It is to make VA see that this is indeed a template class, until we fix this.
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