Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-12-21 12:05:40


Maybe you could try adding one explicit specialization of ct_ident to see if
that sufficiently confuses it? Just a random thought.
-Dave
----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, December 21, 2000 11:35 AM
Subject: [boost] MSVC is amazing

> 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