
On 4/4/2012 11:42 AM, paul Fultz wrote:
The int& held in the tuple will always be mutable regardless if the holder tuple is const, that is why it works. I don't know what else you are doing with forward_as_tuple.
But I thought since this overload is provided for get:
template< std::size_t I, class... Types >
typename std::tuple_element >::type const&
get( const tuple
& t ); Then it would add const to the reference. Also, forward_as_tuple is just the std::forward_as_tuple.
Nope. That is not correct. See:
#include