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
 Invalid Boost.Fusion structures suggestions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kernel_panic
New Member

France
6 Posts

Posted - Jun 20 2013 :  3:21:37 PM  Show Profile  Reply with Quote
If I create a Boost.Fusion structure, Visual Assist is unable to make the proper completion.

Example:


#include <vector>

#include <boost/fusion/adapted/struct/define_struct.hpp>
#include <boost/fusion/include/define_struct.hpp>

BOOST_FUSION_DEFINE_STRUCT((test), test_struct, (unsigned int, i)(std::vector<char>, v));

int main(int argc, char ** argv)
{

   test::test_struct s;

}




When I type s. I would expect to have "i" and "v" suggested, instead I either have nothing or a list made of "self_type" and "BOOST_FUSION_DEFINE_EMPTY_STRUCT_IMPL".

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 20 2013 :  5:55:05 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=75034

The workaround would be to enable the following setting, but as you already mentioned elsewhere you turned off Intellisense.
VA Options -> Advanced -> Listboxes -> Get content from default intellisense

In case you would enable it later or someone has a similar problem and reads this.
Go to Top of Page

kernel_panic
New Member

France
6 Posts

Posted - Jun 21 2013 :  2:05:21 PM  Show Profile  Reply with Quote
Thanks for the answer, I'll try with IntelliSense. I think ideally you should try to parse the Boost.Fusion macros directly (that is, not parse all the macros recursively, but detect it's a Boost.Fusion macro and extract all the appropriate info from it).
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 25 2013 :  10:20:57 AM  Show Profile  Reply with Quote
Normally, we can build simplified macros:
http://docs.wholetomato.com?W302

But this macro just seems to be too complex for that. It's like a different language. :) The only way to parse things like this fast, is to recognize it and parse it differently, like you said. I have added a comment to the case with your suggestion.

If this or any other macro would cause more harm (e.g. by spoiling the scope), you can always tell VA to ignore specific macros altogether, see the above link for more info on this.
Go to Top of Page

kernel_panic
New Member

France
6 Posts

Posted - Jun 25 2013 :  1:00:04 PM  Show Profile  Reply with Quote
Thanks a lot, I did tell VAX to ignore it. I'm looking forward to VAX supporting Boost.Fusion macros! :)

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