]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/cml/core/external_2D.h
version bump cml to version 1.0.2
[chaz/yoink] / src / Moof / cml / core / external_2D.h
index 7461c5191b100456c5c26ae654a2425b6e42139b..fec6a7627f9bd75023d827ea876782ebae8475b9 100644 (file)
@@ -66,7 +66,8 @@ class external_2D
     typedef twod_tag dimension_tag;
 
     /* To simplify the matrix transpose operator: */
-    typedef fixed_2D<Element,Cols,Rows,Layout> transposed_type;
+    typedef fixed_2D<typename cml::remove_const<Element>::type,
+            Cols,Rows,Layout> transposed_type;
     /* Note: the transposed type must be fixed_2D, since an external array
      * cannot be specified without a corresponding memory location.
      */
@@ -204,8 +205,8 @@ class external_2D<Element,-1,-1,Layout>
     typedef twod_tag dimension_tag;
 
     /* To simplify the matrix transpose operator: */
-    typedef dynamic_2D<Element,Layout, CML_DEFAULT_ARRAY_ALLOC>
-        transposed_type;
+    typedef dynamic_2D<typename cml::remove_const<Element>::type,
+        Layout, CML_DEFAULT_ARRAY_ALLOC> transposed_type;
 
     /* To simplify the matrix row and column operators: */
     typedef dynamic_1D<Element, CML_DEFAULT_ARRAY_ALLOC> row_array_type;
This page took 0.018043 seconds and 4 git commands to generate.