Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2000-12-21 11:35:33


MSVC 6.0 is amazing. It compiles the following without missing a beat:

template<class T> struct ct_ident
{
    typedef T type;
};

template<class T> void test(ct_ident<T>::type t)
{
}

int main()
{
    test(4);
    return 0;
}

Any ideas how to defeat this overdeduction? (Another level of indirection
doesn't help.)

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk