20 Aug
2014
20 Aug
'14
4:27 p.m.
On 08/19/2014 01:39 PM, Niall Douglas wrote:
On 19 Aug 2014 at 14:33, Gavin Lambert wrote:
I like the idea of a noalloc_t tag, so insert(noalloc_t, node_ptr_type &&v). Thoughts?
Shouldn't tags traditionally be the final argument?
Pre-C++11 I would agree. However availability of variadic args makes putting tags at the end harder than at the start. For me personally in my own code, I would prefer all tags to go at the front rather than some at the start and some at the end.
Ok, I'm being lazy, but it saves productivity in having to write Args&&... filters just to put tags at the end.
Unless you know of a better way?
Specifying the policy as the first argument seems rather natural given that we go from method_policy(...) to method(policy_t, ...).