
1 Aug
2014
1 Aug
'14
12:12 p.m.
On 1/08/2014 9:56 PM, Roland Bock wrote:
I don't agree. There are situations where static assert is just perfect. Some things just must not happen. If they occur, it is an error. I use static_assert to catch those. I am using it in sqlpp11 and wouldn't want to express everything with enable_if instead.
Of course, enable_if also has its place and I use it, but much less than before.
+1 Some days you want SFINAE, some days you want SFIAE. --- Michael