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	Fri Jun 25 12:48:54 2010 +0200
+++ b/src/Cell.h	Mon Jun 28 09:23:57 2010 +0200
@@ -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