Hi,

There is this mysterious line in scalar_expression<>'s definition:

private:
        typedef typename LHS::value_type          DummyType; //Visual C++
2005 does not allow to write LHS::value_type::value_type

This prevents us from using a scalar expression whose LHS is a
scalar_expression. This makes it impossible to write things such as
viennacl::element_sqrt(scalar_expression). (I need this for neatly
integrating norm_2 into the generator through the statement
element_sqrt(inner_prod(x,x)))

The comment is slightly mysterious. Is
typedef typename LHS::value_type          value_type; not allowed?
I can't believe that VS would break template recursion so easily, but
perhaps I'm wrong.

Philippe
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
ViennaCL-devel mailing list
ViennaCL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viennacl-devel

Reply via email to