|
Boost : |
From: Eric Niebler (eric_at_[hidden])
Date: 2006-01-27 20:29:15
Arkadiy Vertleyb wrote:
>
> template<class T, class U = T*, class V = U*>
> struct x;
<snip>
> template<class T, class U, class V>
> struct x
> {};
>
Bingo. Yes, this is legal, and as a general rule, I put all my default
template parameters in forward declarations this way.
-- Eric Niebler Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk