]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/cml/vector/external.h
version bump cml to version 1.0.2
[chaz/yoink] / src / Moof / cml / vector / external.h
index 43c4c46f639b8baec51ae4b70fd33be8c23994c9..6f0f2153ec9ea94618201bcf954ed110f1319918 100644 (file)
@@ -49,7 +49,8 @@ class vector< Element, external<Size> >
     typedef vector_type expr_type;
 
     /* For integration into the expression template code: */
-    typedef vector< Element,fixed<Size> > temporary_type;
+    typedef vector<typename cml::remove_const<Element>::type,
+            fixed<Size> > temporary_type;
     typedef typename temporary_type::subvector_type subvector_type;
     /* Note: this ensures that an external vector is copied into the proper
      * temporary; external<> temporaries are not allowed.
@@ -188,7 +189,8 @@ class vector< Element, external<> >
     typedef vector_type expr_type;
 
     /* For integration into the expression template code: */
-    typedef vector< Element, dynamic<> > temporary_type;
+    typedef vector<typename cml::remove_const<Element>::type,
+            dynamic<> > temporary_type;
     /* Note: this ensures that an external vector is copied into the proper
      * temporary; external<> temporaries are not allowed.
      */
This page took 0.016856 seconds and 4 git commands to generate.