diff --git a/bazaar/plugin/matio/matio.h b/bazaar/plugin/matio/matio.h index aae01f191..cdc70ee09 100644 --- a/bazaar/plugin/matio/matio.h +++ b/bazaar/plugin/matio/matio.h @@ -59,12 +59,13 @@ public: const T &operator()(int r) const {return data[r];} const T &operator()(int r, int c) const {return data[c*rows + r];} - operator T*() { return data; } - operator const T*() const { return data; } + operator T*() {return data;} + operator const T*() const {return data;} - int GetCount() {return rows*cols;} - int GetRows() {return rows;} - int GetCols() {return cols;} + int GetCount() const {return rows*cols;} + int size() const {return GetCount();} + int GetRows() const {return rows;} + int GetCols() const {return cols;} void Print() { for(int r = 0; r < GetRows(); r++) { diff --git a/bazaar/plugin/matio/matio.upp b/bazaar/plugin/matio/matio.upp index c7cbda021..05851ac7b 100644 --- a/bazaar/plugin/matio/matio.upp +++ b/bazaar/plugin/matio/matio.upp @@ -1,5 +1,7 @@ description "MATLAB MAT file I/O library\3770,128,128"; +options(BUILDER_OPTION) NOWARNINGS; + uses Core;