[Gridflow-cvs] [svn] commit: r6021 - /trunk/src/gridflow.hxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Aug 10 18:41:55 EDT 2010


Author: matju
Date: Tue Aug 10 18:41:54 2010
New Revision: 6021

Log:
add operator= to t_atom2

Modified:
    trunk/src/gridflow.hxx

Modified: trunk/src/gridflow.hxx
==============================================================================
--- trunk/src/gridflow.hxx (original)
+++ trunk/src/gridflow.hxx Tue Aug 10 18:41:54 2010
@@ -270,6 +270,8 @@
 	TYPECASTER2(Grid       *,A_GRID   ,"grid"       ,       (Grid *)a_gpointer)
 	TYPECASTER2(GridOutlet *,A_GRIDOUT,"grid outlet", (GridOutlet *)a_gpointer)
 #undef TYPECASTER2
+
+	template <class T> t_atom2 &operator = (T value) {set_atom(this,value); return *this;};
 };
 
 template <class T> T convert(const t_atom &x, T *foo) {const t_atom2 *xx = (const t_atom2 *)&x; return (T)*xx;}



More information about the Gridflow-cvs mailing list