From 5059d7ee7b3954dc592c0307dd38862d9a0564d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Mon, 1 Oct 2018 05:57:59 +0200 Subject: [PATCH] Add conditional compilation for the base::MatrixVec import too. --- src/base/conversion.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/base/conversion.rs b/src/base/conversion.rs index 8c0c2e00..23654c4f 100644 --- a/src/base/conversion.rs +++ b/src/base/conversion.rs @@ -14,7 +14,9 @@ use base::constraint::{SameNumberOfColumns, SameNumberOfRows, ShapeConstraint}; use base::dimension::{Dim, DimName, Dynamic, U1, U10, U11, U12, U13, U14, U15, U16, U2, U3, U4, U5, U6, U7, U8, U9}; use base::iter::{MatrixIter, MatrixIterMut}; use base::storage::{ContiguousStorage, ContiguousStorageMut, Storage, StorageMut}; -use base::{DefaultAllocator, Matrix, MatrixMN, MatrixArray, MatrixSlice, MatrixSliceMut, MatrixVec, Scalar}; +use base::{DefaultAllocator, Matrix, MatrixMN, MatrixArray, MatrixSlice, MatrixSliceMut, Scalar}; +#[cfg(any(feature = "std", feature = "alloc"))] +use base::MatrixVec; // FIXME: too bad this won't work allo slice conversions. impl SubsetOf> for MatrixMN