Boost logo

Boost Users :

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


Hi!
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
illegal".

------------------------------------

#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,
Lorenzo.

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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net