Created on 2009-11-05.00:00:00 last changed 171 months ago
[ Question to the editor: Shouldn't there a paragraph number in front of the Effects clause? ]
template<class F,Allocator Allocclass A> void assign(F f, const Alloc& a);3 Effects: function(
f, aallocator_arg, a, f).swap(*this)
Proposed resolution:
Change in [func.wrap.func.mod] the complete prototype description as indicated
[ 2009-11-15 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]
[ 2009-11-13 Daniel brought wording up to date. ]
As of [func.wrap.func.mod]/2+ we have the following prototype description:
template<class F, Allocator Alloc> void assign(F, const Alloc&);Effects: function(f, a).swap(*this)
Two things: First the concept debris needs to be removed, second and much more importantly, the effects clause is now impossible to satisfy, because there is no constructor that would match the parameter sequence (FunctionObject, Allocator) [plus the fact that no f and no a is part of the signature]. The most probable candidate is
template<class F, class A> function(allocator_arg_t, const A&, F);
and the effects clause needs to be adapted to use this signature.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-11-19 19:04:45 | admin | set | status: nad editorial -> resolved |
2010-10-21 18:28:33 | admin | set | messages: + msg1346 |
2010-10-21 18:28:33 | admin | set | messages: + msg1345 |
2010-10-21 18:28:33 | admin | set | messages: + msg1344 |
2010-10-21 18:28:33 | admin | set | messages: + msg1343 |
2010-10-21 18:28:33 | admin | set | messages: + msg1342 |
2009-11-05 00:00:00 | admin | create |