Re: [boost] Tuples in MS Visual C++
by Doug Gregor other posts by this author
Feb 9 2001 4:17AM messages near this date
RE: [boost] Tuples in MS Visual C++
|
RE: [boost] Overhaul of Random Number Library
On Thursday 08 February 2001 11:07, Joe Mariadassou wrote:
> <snip>
> // Tie variables into a tuple
> template<typename T1, typename T2>
> inline
> tuple<detail::assign_to_pointee<T1> >
> tie(T1& t1)
> {
> return make_tuple(detail::assign_to_pointee<T1>(&t1));
> }
>
> </snip>
> Is T2 required here?
> joe
No, and it is incorrect. Since T2 cannot be deduced, this tie() function can
never be instantiated. Thank you for noting the error - an updated version is
in the vault.
Doug
Thread:
Joe Mariadassou
Doug Gregor
|