
1 Oct
2012
1 Oct
'12
9:03 p.m.
On Thu, Sep 27, 2012 at 10:21 AM, Lorenzo Caminiti <lorcaminiti@gmail.com> wrote:
BTW, why do we declare concepts like:
concept EqualityComparable< typename T > = ... // (1)
Instead of:
template< typename T > concept EqualityComparable = ... // (2)
I personally prefer (2) because the template parameters are declared with a syntax that is more consistent with the syntax used to declare them in class/function templates. For similar reasons, I'd prefer { ... } instead of = ... for the concept definition part.
Does anyone have an opinion/rationale about the syntax of (1) vs. the one of (2)? Thanks, --Lorenzo