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
 Parsing 'traits' templates hangs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nholthaus
Junior Member

20 Posts

Posted - Jan 29 2016 :  10:34:37 PM  Show Profile  Reply with Quote
Including 'traits' templates (like the one below) into headers causes them to hang for long periods of time, almost any time the header is edited (seemingly due to 'creating template instantiations'). The problem is particularly bad for Visual Studio 2013, but affect 2015 as well.

template<class T, typename = void>
struct unit_traits
{
typedef void base_unit_type;
};

template<class T>
struct unit_traits<T, std::void_t<T::base_unit_type>>
{
typedef T::base_unit_type base_unit_type;
};

sean
Whole Tomato Software

USA
2640 Posts

Posted - Jan 30 2016 :  3:50:25 PM  Show Profile  Reply with Quote
Sorry -- this is fixed in the next build. The problem is due to the unnamed default template parameter. case=94492
The next build is currently being tested.
It is available here if you would like access before testing completes:
http://www.wholetomato.com/binaries/VA_X_Setup2088.exe
Go to Top of Page

sean
Whole Tomato Software

USA
2640 Posts

Posted - Feb 02 2016 :  7:47:12 PM  Show Profile  Reply with Quote
case=94492 is fixed in build 2089.
Go to Top of Page

nholthaus
Junior Member

20 Posts

Posted - Feb 08 2016 :  1:50:02 PM  Show Profile  Reply with Quote
Thanks! The 2089 build is much more usable for template metaprogramming.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000