Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-24 07:39:01


From: "John Maddock" <John_Maddock_at_[hidden]>
> Sorry, but you just can't do that - your proposed fix would cause is_const
> to fail to compile with reference types, which would stop is_reference
from
> working, which would stop compressed_pair, call_traits, functional.hpp and
> heaven knows what else to stop working. (try building the type traits
test
> programs if you don't believe me).

Unfortunately you're right.

I experimented a bit with tuple.hpp to see what's wrong; here's a minimal
example I've found that fails on both VC 6 and VC 7:

#include <boost/type_traits.hpp>

template<int N> boost::add_reference<int>::type get();

int main()
{
}

--
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