View difference between Paste ID: AGPYxgPF and ABWyzQMK
SHOW: | | - or go back to the newest paste.
1-
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. The blog will be hosted at http://rmartinho.github.com/
1+
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. The blog will be hosted at http://rmartinho.github.com/ (I'm still playing around with that GitHub pages thing, so don't think much of what you find there)
2
3
Here's the plan:
4
5
1. Building blocks
6
    Basically an expanded version of http://loungecpp.wikidot.com/tips-and-tricks:reducing-pain-with-template-aliases.
7
    Then goes on to introduce some simple type traits that should be in the standard, things like `identity`, `Bare`, `WithConstOf`, `Any`, `All`, etc.
8
2. A cleaner SFINAE style
9
    Based off of http://loungecpp.wikidot.com/tips-and-tricks:enable-if-for-c-11
10
11
And in a yet TBD order:
12
13
x. `is_related`, or "How to make non-copy ctors"
14
x. Playing around with indices
15
x. Deduce type parameters, unless explicit
16
x. The pain of function qualifiers
17
x. ???