diff src/Cell.h @ 10757:1cc44f3ec814

templated extractors for maps and cells
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 28 Jun 2010 09:23:57 +0200
parents 64472dd48517
children e7864673c31f
line wrap: on
line diff
--- a/src/Cell.h
+++ b/src/Cell.h
@@ -136,4 +136,8 @@
   Cell map (ctype_mapper) const;
 };
 
+template<>
+inline Cell octave_value_extract<Cell> (const octave_value& v)
+  { return v.cell_value (); }
+
 #endif