Possible Duplicate:
std::tuple get() member function
There seem to be separate overloads for std::get
, for different homogeneous and heterogeneous containers such as for std::tuple
.
This seems a bit awkward; The more obvious choice would be if there was an std::tuple::get()
with one template parameter (the index). I'd be surprised if this choice was made on a whim, so I wonder why the standardisation committee would choose to make it a free function instead of a member function, despite the latter being a more natural interface.
Is there any good reason?