added test using own class as argument
[libt2n] / example-codegen / server.hxx
index b15ccee..16068a0 100644 (file)
@@ -8,6 +8,8 @@
 #include <vector>
 #include <boost/serialization/vector.hpp>
 
+#include "foo.hxx"
+
 #include "codegen_common.hxx"
 
 LIBT2N_SET_DEFAULTGROUP(default);
@@ -63,3 +65,6 @@ LIBT2N_EXPORT_GROUP(other) bool t3(const std::vector<int> &i)
 {
     return (i.size()==1) && (i[0]==10);
 }
+
+//! test own type and seperate declaration and definition
+LIBT2N_EXPORT_GROUP(other) bool t3(const Foo &foo);