Boost logo

Boost :

From: Alex Chovanec (achovane_at_[hidden])
Date: 2004-08-17 23:01:41


Hi,

The following code does not compile under vc7.0-stlport-4.6.2:

    struct foo {};

    typedef std::vector<int> vector_int;
    typedef std::vector<foo> vector_foo;

    BOOST_STATIC_ASSERT((
        boost::is_same<
            int,
            boost::iterator_value<vector_int::iterator>::type>::
    value));

    BOOST_STATIC_ASSERT((
        boost::is_same<
            foo,
            boost::iterator_value<vector_foo::iterator>::type>::
    value));

Obviously, neither of these assertions should fail, but the second one does.
I'm guessing that this is a problem with boost::iterator_value. Does anyone
know how to fix this?

Thanks,

Alex


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