client lib include must not depend on _common.hxx
[libt2n] / example-codegen / other-1.cpp
1 #include "other.hxx"
2 #include "other_common.hxx"
3
4 using namespace std;
5
6 //! test function overload
7 LIBT2N_EXPORT int t3(int i)
8 {
9     return i;
10 }
11
12 //! test pair, multiple arguments and namespace
13 LIBT2N_EXPORT bool t3(int i, float f, const string &s, const pair<int, float> &p)
14 {
15     return (i==p.first) && (f==p.second) && (s=="hello");
16 }
17
18 //! test std::vector
19 LIBT2N_EXPORT bool t3(const std::vector<int> &i)
20 {
21     return (i.size()==1) && (i[0]==10);
22 }