Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Parsing 'traits' templates hangs

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
nholthaus Posted - Jan 29 2016 : 10:34:37 PM
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;
};
3   L A T E S T    R E P L I E S    (Newest First)
nholthaus Posted - Feb 08 2016 : 1:50:02 PM
Thanks! The 2089 build is much more usable for template metaprogramming.
sean Posted - Feb 02 2016 : 7:47:12 PM
case=94492 is fixed in build 2089.
sean Posted - Jan 30 2016 : 3:50:25 PM
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

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