Boost logo

Boost Users :

From: Lorenzo Bolla (bolla_at_[hidden])
Date: 2004-03-24 10:38:16

I'm working with the boost::numeric::ublas library and I'm having some
problems, but I'm posting here because I think the problem is due to the
type_traits library. In fact, with Visual C++ 7.0 this piece of code
does not compile, with the error C2529: "reference to reference is


#include <boost/type_traits.hpp>
#include <complex>

//typedef double value_t;
typedef std::complex<double> value_t;

int main()
        // reference to reference!!!
        boost::remove_reference<value_t&>::type const &a (value_t (0.));
        return 0;


With value_t == double everything works fine.
Any suggestions?
Thank you,

                 / \
           N----C   C==O
          ||   ||   |
          ||   ||   |
          CH    C   N--CH3
            \  / \ /
             N    C
             |   ||
            CH3   O

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at