X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fother.cpp;h=4121f047223488731f451053cb47a2a8130402f3;hp=c84fcdc74e548dd6a63f8eb3cdafdd3e7571dd45;hb=a3b94a2c3f0e0c9b18674def2e2dd0b02cdfdb41;hpb=a96ab6288873059274d783980f70899e24bb46ce diff --git a/example-codegen/other.cpp b/example-codegen/other.cpp index c84fcdc..4121f04 100644 --- a/example-codegen/other.cpp +++ b/example-codegen/other.cpp @@ -11,29 +11,3 @@ #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); -}