X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fother.cpp;h=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hp=c84fcdc74e548dd6a63f8eb3cdafdd3e7571dd45;hb=3c4dd222bdf18612d26250088c999dc0b2937dba;hpb=a96ab6288873059274d783980f70899e24bb46ce diff --git a/example-codegen/other.cpp b/example-codegen/other.cpp index c84fcdc..e69de29 100644 --- a/example-codegen/other.cpp +++ b/example-codegen/other.cpp @@ -1,39 +0,0 @@ -#include -// serialization of string -#include -// serialization of pair -#include - -// std::vector -#include -#include - -#include "foo.hxx" - -#include "other_common.hxx" - -using namespace std; - -//! test function overload -LIBT2N_EXPORT int t3(int i) -{ - return i; -} - -//! test pair, multiple arguments and namespace -LIBT2N_EXPORT bool t3(int i, float f, const string &s, const pair &p) -{ - return (i==p.first) && (f==p.second) && (s=="hello"); -} - -//! test std::vector -LIBT2N_EXPORT bool t3(const std::vector &i) -{ - return (i.size()==1) && (i[0]==10); -} - -//! test own type -LIBT2N_EXPORT bool t3(const Foo &foo) -{ - return (foo.i==foo.j); -}