KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to declare or not a member variable depending on template condition without using dummy empty type? Example: struct empty{}; struct real_type{}; template<bool condition> struct foo { typename std::conditional<condition, real_type, empty>::type _member; };
Tags (comma-separated)
Save Edits
Cancel