R
REH
GCC accepts this in a template parameter list:
template<class> class T = std::vector
However Visual C++ conplains because the actual template parameter list of
std::vector does not match, because of course the defaulted allocator
parameter. So, technically its correct. But what does the standard say?
Does it allow the above? Stroustrup's "The C++ Programming Language" (SE)
uses the above in several examples.
Thanks,
REH
template<class> class T = std::vector
However Visual C++ conplains because the actual template parameter list of
std::vector does not match, because of course the defaulted allocator
parameter. So, technically its correct. But what does the standard say?
Does it allow the above? Stroustrup's "The C++ Programming Language" (SE)
uses the above in several examples.
Thanks,
REH