|
Boost : |
From: Doug Gregor (gregod_at_[hidden])
Date: 2001-02-08 23:17:03
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk