Nov 17, 2013 at 6:09am Nov 17, 2013 at 6:09am UTC
@JLBorges: Ah, that makes a little sense. Thanks!
@cire: unfortunately that's not an option because later in the class Outer, the specializations of Inner need to exist to be used.
Last edited on Nov 17, 2013 at 8:03pm Nov 17, 2013 at 8:03pm UTC
Nov 17, 2013 at 8:15pm Nov 17, 2013 at 8:15pm UTC
JLBorges wrote:3 4
template < typename U, typename = void > struct Inner {} ;
template < typename VOID > struct Inner<double ,VOID> {};
Is this equivalent to my enable_if version? if so, I'll switch to this more terse version instead.
Last edited on Nov 17, 2013 at 8:16pm Nov 17, 2013 at 8:16pm UTC
Nov 17, 2013 at 8:24pm Nov 17, 2013 at 8:24pm UTC
> Is this equivalent to my enable_if version?
Yes.
Both are technically partial specializations (which are allowed because they are subject to two phase name lookup, with dependant names resolved later during phase two).