Commit | Line | Data |
---|---|---|
85106017 | 1 | #include "other.hxx" |
a96ab628 JT |
2 | using namespace std; |
3 | ||
4 | //! test function overload | |
5 | LIBT2N_EXPORT int t3(int i) | |
6 | { | |
7 | return i; | |
8 | } | |
9 | ||
10 | //! test pair, multiple arguments and namespace | |
11 | LIBT2N_EXPORT bool t3(int i, float f, const string &s, const pair<int, float> &p) | |
12 | { | |
13 | return (i==p.first) && (f==p.second) && (s=="hello"); | |
14 | } | |
15 | ||
16 | //! test std::vector | |
17 | LIBT2N_EXPORT bool t3(const std::vector<int> &i) | |
18 | { | |
19 | return (i.size()==1) && (i[0]==10); | |
20 | } |