Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- As discussed here http://chat.stackoverflow.com/transcript/10?m=3820892#3820892, I am going to blog about some TMP tricks and style I learned/came up with in my C++11 endeavours.
- Here's the plan:
- 1. Building blocks
- Basically an expanded version of http://loungecpp.wikidot.com/tips-and-tricks:reducing-pain-with-template-aliases.
- Then goes on to introduce some simple type traits that should be in the standard, things like `identity`, `Bare`, `WithConstOf`, `Any`, `All`, etc.
- 2. A cleaner SFINAE style
- Based off of http://loungecpp.wikidot.com/tips-and-tricks:enable-if-for-c-11
- And in a yet TBD order:
- x. `is_related`, or "How to make non-copy ctors"
- x. Playing around with indices
- x. Deduce type parameters, unless explicit
- x. The pain of function qualifiers
- x. ???
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement