
23 Mar
2005
23 Mar
'05
4:06 p.m.
Peter Dimov <pdimov <at> mmltd.net> writes:
Joaquín M LópezMuñoz wrote:
The problem with this approach is that it is allowed that stdlib implementors use extra template parameters.
They are not, see:
So much the better! Is there any obstacle, then, to forward declare STL containers so as to define their corresponding hash_value overloads, instead of including them? In the linked page it is said [quote] "I can't think of any way that this extension could break a conforming program, considering that users are not permitted to forward-declare standard library components" Is this really so? Why cannot I forward declare a stdlib component? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo