Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 No member info for arithmetic_types.h (Dr.Dobbs)

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
tjcbs Posted - Jun 25 2015 : 3:43:20 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jul 02 2015 : 9:02:31 PM
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.

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